Skip to content

Commit 05341f2

Browse files
authored
Update test pipelines | chore(ci) (#701)
- Updated the torch-nightly action to also use onnx-weekly, so we can run op tests with torch-nightly. - Remove the function experiment test because microsoft/onnxruntime#14929 was merged
1 parent 52613fb commit 05341f2

File tree

2 files changed

+1
-35
lines changed

2 files changed

+1
-35
lines changed

.github/workflows/main.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
- py310
2929
- py39
3030
- py38
31-
- py310-experimental
3231
- py310-torch-nightly
3332
- py310-onnx-weekly
3433
- py310-ort-nightly
@@ -42,9 +41,6 @@ jobs:
4241
- name: py38
4342
python-version: "3.8"
4443
nox-tag: test
45-
- name: py310-experimental
46-
python-version: "3.10"
47-
nox-tag: test-function-experiment
4844
- name: py310-torch-nightly
4945
python-version: "3.10"
5046
nox-tag: test-torch-nightly

noxfile.py

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -61,44 +61,14 @@ def test(session):
6161
session.run("pytest", "docs/test", *session.posargs)
6262

6363

64-
@nox.session(tags=["test-function-experiment"])
65-
def test_onnx_func_expe(session):
66-
"""Test with onnx function experiment builds."""
67-
# TODO(justinchuby): Remove when test-ort-nightly contains this change.
68-
session.install(
69-
*COMMON_TEST_DEPENDENCIES,
70-
PYTORCH,
71-
)
72-
# Install ONNX and ORT with experimental ONNX function support
73-
session.install(
74-
"-f",
75-
"https://onnxruntimepackages.z14.web.core.windows.net/onnxruntime-function-experiment.html",
76-
"--pre",
77-
"ort-function-experiment-nightly",
78-
)
79-
80-
session.install("-r", "requirements/ci/requirements-onnx-weekly.txt")
81-
session.install(".", "--no-deps")
82-
session.run("pip", "list")
83-
# Ignore ops_correctness_test because this version of ORT does not contain the
84-
# latest fixes and may fail some tests in the torch op tests.
85-
session.run(
86-
"pytest",
87-
"onnxscript",
88-
"--ignore=onnxscript/tests/function_libs/torch_lib/ops_test.py",
89-
*session.posargs,
90-
)
91-
session.run("pytest", "docs/test", *session.posargs)
92-
93-
9464
@nox.session(tags=["test-torch-nightly"])
9565
def test_torch_nightly(session):
9666
"""Test with PyTorch nightly (preview) build."""
9767
session.install(
9868
*COMMON_TEST_DEPENDENCIES,
99-
ONNX,
10069
ONNX_RUNTIME,
10170
)
71+
session.install("-r", "requirements/ci/requirements-onnx-weekly.txt")
10272
session.install("-r", "requirements/ci/requirements-pytorch-nightly.txt")
10373
session.install(".", "--no-deps")
10474
session.run("pip", "list")

0 commit comments

Comments
 (0)