Skip to content

Commit

Permalink
Run unittest on non-editable installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed Jul 31, 2020
1 parent ec108a1 commit 25cca95
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/unittest/linux/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ printf "Installing PyTorch with %s\n" "${cudatoolkit}"
conda install -y -c pytorch-nightly pytorch "${cudatoolkit}"

printf "* Installing torchaudio\n"
BUILD_SOX=1 python setup.py develop
BUILD_SOX=1 python setup.py install
5 changes: 3 additions & 2 deletions .circleci/unittest/linux/scripts/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ conda activate ./env
python -m torch.utils.collect_env
export PATH="${PWD}/third_party/install/bin/:${PATH}"

cd test
if [ "${os}" == MacOSX ] ; then
pytest -q -n auto --dist=loadscope --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 test
pytest -q -n auto --dist=loadscope --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 .
else
pytest -v --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 test
pytest -v --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 .
fi
2 changes: 1 addition & 1 deletion .circleci/unittest/windows/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ printf "Installing PyTorch with %s\n" "${cudatoolkit}"
conda install -y -c pytorch-nightly pytorch "${cudatoolkit}"

printf "* Installing torchaudio\n"
python setup.py develop
python setup.py install
4 changes: 2 additions & 2 deletions .circleci/unittest/windows/scripts/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ eval "$(./conda/Scripts/conda.exe 'shell.bash' 'hook')"
conda activate ./env

python -m torch.utils.collect_env
pytest --cov=torchaudio --junitxml=test-results/junit.xml -v --durations 20 test
flake8 torchaudio test
cd test
pytest --cov=torchaudio --junitxml=test-results/junit.xml -v --durations 20 .

0 comments on commit 25cca95

Please sign in to comment.