Skip to content

Commit 25cca95

Browse files
committed
Run unittest on non-editable installation
1 parent ec108a1 commit 25cca95

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ conda activate ./env
1414
python -m torch.utils.collect_env
1515
export PATH="${PWD}/third_party/install/bin/:${PATH}"
1616

17+
cd test
1718
if [ "${os}" == MacOSX ] ; then
18-
pytest -q -n auto --dist=loadscope --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 test
19+
pytest -q -n auto --dist=loadscope --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 .
1920
else
20-
pytest -v --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 test
21+
pytest -v --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 .
2122
fi

.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 .

0 commit comments

Comments
 (0)