Skip to content

Commit 4c85f81

Browse files
authored
Make pytest run ignoring the ones with collection error (#3692)
PyTorch lightening is having issue with the nightly PyTorch. Let the other tests still run.
1 parent df2a6bc commit 4c85f81

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/scripts/unittest-linux/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env | grep TORCHAUDIO || true
1212
export PATH="${PWD}/third_party/install/bin/:${PATH}"
1313

1414
declare -a args=(
15+
'--continue-on-collection-errors'
1516
'-v'
1617
'--cov=torchaudio'
1718
"--junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml"

.github/scripts/unittest-windows/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ python -m torch.utils.collect_env
1212
env | grep TORCHAUDIO || true
1313

1414
cd test
15-
pytest --cov=torchaudio --junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml -v --durations 20 torchaudio_unittest
15+
pytest --continue-on-collection-errors --cov=torchaudio --junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml -v --durations 20 torchaudio_unittest
1616
coverage html

0 commit comments

Comments
 (0)