Skip to content

Commit 05160c5

Browse files
committed
Run unittest on non-editable installation
1 parent e33bbbb commit 05160c5

File tree

123 files changed

+72
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+72
-65
lines changed

.circleci/unittest/linux/scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ printf "Installing PyTorch with %s\n" "${cudatoolkit}"
2020
conda install -y -c pytorch-nightly pytorch "${cudatoolkit}"
2121

2222
printf "* Installing torchaudio\n"
23-
BUILD_SOX=1 python setup.py develop
23+
BUILD_SOX=1 python setup.py install

.circleci/unittest/linux/scripts/run_test.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ python -m torch.utils.collect_env
1515
export TORCHAUDIO_TEST_FAIL_IF_NO_EXTENSION=1
1616
export PATH="${PWD}/third_party/install/bin/:${PATH}"
1717

18+
declare -a common_args=(
19+
'--cov=torchaudio'
20+
'--junitxml=../test-results/junit.xml'
21+
'--durations' '20'
22+
)
1823
if [ "${os}" == MacOSX ] ; then
19-
pytest -q -n auto --dist=loadscope --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 test
24+
declare -a args=('-q' '-n' 'auto' '--dist=loadscope')
2025
else
21-
pytest -v --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 test
26+
declare -a args=('-v')
2227
fi
28+
cd test
29+
pytest "${args[@]}" "${common_args[@]}" torchaudio_unittest

.circleci/unittest/windows/scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ printf "Installing PyTorch with %s\n" "${cudatoolkit}"
2020
conda install -y -c pytorch-nightly pytorch "${cudatoolkit}"
2121

2222
printf "* Installing torchaudio\n"
23-
python setup.py develop
23+
python setup.py install

.circleci/unittest/windows/scripts/run_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ eval "$(./conda/Scripts/conda.exe 'shell.bash' 'hook')"
66
conda activate ./env
77

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

test/README.md

Lines changed: 18 additions & 18 deletions
File renamed without changes.

0 commit comments

Comments
 (0)