Skip to content

Update test pipelines | chore(ci) #701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
- py310
- py39
- py38
- py310-experimental
- py310-torch-nightly
- py310-onnx-weekly
- py310-ort-nightly
Expand All @@ -42,9 +41,6 @@ jobs:
- name: py38
python-version: "3.8"
nox-tag: test
- name: py310-experimental
python-version: "3.10"
nox-tag: test-function-experiment
- name: py310-torch-nightly
python-version: "3.10"
nox-tag: test-torch-nightly
Expand Down
32 changes: 1 addition & 31 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,44 +61,14 @@ def test(session):
session.run("pytest", "docs/test", *session.posargs)


@nox.session(tags=["test-function-experiment"])
def test_onnx_func_expe(session):
"""Test with onnx function experiment builds."""
# TODO(justinchuby): Remove when test-ort-nightly contains this change.
session.install(
*COMMON_TEST_DEPENDENCIES,
PYTORCH,
)
# Install ONNX and ORT with experimental ONNX function support
session.install(
"-f",
"https://onnxruntimepackages.z14.web.core.windows.net/onnxruntime-function-experiment.html",
"--pre",
"ort-function-experiment-nightly",
)

session.install("-r", "requirements/ci/requirements-onnx-weekly.txt")
session.install(".", "--no-deps")
session.run("pip", "list")
# Ignore ops_correctness_test because this version of ORT does not contain the
# latest fixes and may fail some tests in the torch op tests.
session.run(
"pytest",
"onnxscript",
"--ignore=onnxscript/tests/function_libs/torch_lib/ops_test.py",
*session.posargs,
)
session.run("pytest", "docs/test", *session.posargs)


@nox.session(tags=["test-torch-nightly"])
def test_torch_nightly(session):
"""Test with PyTorch nightly (preview) build."""
session.install(
*COMMON_TEST_DEPENDENCIES,
ONNX,
ONNX_RUNTIME,
)
session.install("-r", "requirements/ci/requirements-onnx-weekly.txt")
session.install("-r", "requirements/ci/requirements-pytorch-nightly.txt")
session.install(".", "--no-deps")
session.run("pip", "list")
Expand Down