Unverified Commit 4c85f817 authored by moto's avatar moto Committed by GitHub
Browse files

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.
parent df2a6bcd
...@@ -12,6 +12,7 @@ env | grep TORCHAUDIO || true ...@@ -12,6 +12,7 @@ env | grep TORCHAUDIO || true
export PATH="${PWD}/third_party/install/bin/:${PATH}" export PATH="${PWD}/third_party/install/bin/:${PATH}"
declare -a args=( declare -a args=(
'--continue-on-collection-errors'
'-v' '-v'
'--cov=torchaudio' '--cov=torchaudio'
"--junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml" "--junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml"
......
...@@ -12,5 +12,5 @@ python -m torch.utils.collect_env ...@@ -12,5 +12,5 @@ python -m torch.utils.collect_env
env | grep TORCHAUDIO || true env | grep TORCHAUDIO || true
cd test cd test
pytest --cov=torchaudio --junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml -v --durations 20 torchaudio_unittest pytest --continue-on-collection-errors --cov=torchaudio --junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml -v --durations 20 torchaudio_unittest
coverage html coverage html
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment