Skip to content
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

Disable onnx test job again #8975

Merged
merged 1 commit into from
Mar 17, 2025
Merged
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
66 changes: 33 additions & 33 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,39 +109,39 @@ jobs:

./.github/scripts/unittest.sh

onnx:
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
permissions:
id-token: write
contents: read
with:
repository: pytorch/vision
test-infra-ref: main
script: |
set -euo pipefail

export PYTHON_VERSION=3.10
export GPU_ARCH_TYPE=cpu
export GPU_ARCH_VERSION=''

./.github/scripts/setup-env.sh

# Prepare conda
CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)"
conda activate ci

echo '::group::Install ONNX'
pip install --progress-bar=off onnx onnxruntime
echo '::endgroup::'

echo '::group::Install testing utilities'
pip install --progress-bar=off pytest "numpy<2"
echo '::endgroup::'

echo '::group::Run ONNX tests'
pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_onnx.py
echo '::endgroup::'
# onnx:
# uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
# permissions:
# id-token: write
# contents: read
# with:
# repository: pytorch/vision
# test-infra-ref: main
# script: |
# set -euo pipefail

# export PYTHON_VERSION=3.10
# export GPU_ARCH_TYPE=cpu
# export GPU_ARCH_VERSION=''

# ./.github/scripts/setup-env.sh

# # Prepare conda
# CONDA_PATH=$(which conda)
# eval "$(${CONDA_PATH} shell.bash hook)"
# conda activate ci

# echo '::group::Install ONNX'
# pip install --progress-bar=off onnx onnxruntime
# echo '::endgroup::'

# echo '::group::Install testing utilities'
# pip install --progress-bar=off pytest "numpy<2"
# echo '::endgroup::'

# echo '::group::Run ONNX tests'
# pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_onnx.py
# echo '::endgroup::'

unittests-extended:
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
Expand Down
Loading