Unverified Commit 95d9f2d2 authored by moto's avatar moto Committed by GitHub
Browse files

Revert "Run tests in parallel with pytest-xdist (#807)" (#915)

This reverts commit 1ecbc249.

Reason: The macOS CI jobs are stuck with xdist recently.
parent 77df44e3
...@@ -7,7 +7,6 @@ dependencies: ...@@ -7,7 +7,6 @@ dependencies:
- numpy >= 1.11 - numpy >= 1.11
- pytest - pytest
- pytest-cov - pytest-cov
- pytest-xdist
- codecov - codecov
- librosa>=0.8.0 - librosa>=0.8.0
- llvmlite==0.31 # See https://github.com/pytorch/audio/pull/766 - llvmlite==0.31 # See https://github.com/pytorch/audio/pull/766
......
...@@ -2,12 +2,6 @@ ...@@ -2,12 +2,6 @@
set -e set -e
case "$(uname -s)" in
Darwin*) os=MacOSX;;
*) os=Linux
esac
eval "$(./conda/bin/conda shell.bash hook)" eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env conda activate ./env
...@@ -15,15 +9,12 @@ python -m torch.utils.collect_env ...@@ -15,15 +9,12 @@ python -m torch.utils.collect_env
export TORCHAUDIO_TEST_FAIL_IF_NO_EXTENSION=1 export TORCHAUDIO_TEST_FAIL_IF_NO_EXTENSION=1
export PATH="${PWD}/third_party/install/bin/:${PATH}" export PATH="${PWD}/third_party/install/bin/:${PATH}"
declare -a common_args=( declare -a args=(
'-v'
'--cov=torchaudio' '--cov=torchaudio'
"--junitxml=${PWD}/test-results/junit.xml" "--junitxml=${PWD}/test-results/junit.xml"
'--durations' '20' '--durations' '20'
) )
if [ "${os}" == MacOSX ] ; then
declare -a args=('-q' '-n' 'auto' '--dist=loadscope')
else
declare -a args=('-v')
fi
cd test cd test
pytest "${args[@]}" "${common_args[@]}" torchaudio_unittest pytest "${args[@]}" torchaudio_unittest
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