File tree 4 files changed +2
-36
lines changed 4 files changed +2
-36
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ channels:
5
5
- conda-forge
6
6
dependencies :
7
7
- pytest
8
- - pytest-xdist
9
- - pytest-timeout
10
8
- pytest-cov
11
9
- codecov
12
10
- pip
Original file line number Diff line number Diff line change @@ -6,20 +6,5 @@ eval "$(./conda/bin/conda shell.bash hook)"
6
6
conda activate ./env
7
7
8
8
export PYTORCH_TEST_WITH_SLOW=' 1'
9
- if [ " ${CU_VERSION:- } " == cpu ] ; then
10
- NUMPROCESSES=" auto"
11
- export OMP_NUM_THREADS=" 1"
12
- else
13
- NUMPROCESSES=" 1"
14
- fi
15
-
16
9
python -m torch.utils.collect_env
17
- pytest \
18
- --numprocesses=$NUMPROCESSES \
19
- --timeout=300 \
20
- --cov=torchvision \
21
- --junitxml=test-results/junit.xml \
22
- --verbose \
23
- --durations 20 \
24
- --ignore=test/test_datasets_download.py \
25
- test
10
+ pytest --cov=torchvision --junitxml=test-results/junit.xml -v --durations 20 test --ignore=test/test_datasets_download.py
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ channels:
5
5
- conda-forge
6
6
dependencies :
7
7
- pytest
8
- - pytest-xdist
9
- - pytest-timeout
10
8
- pytest-cov
11
9
- codecov
12
10
- pip
Original file line number Diff line number Diff line change @@ -6,20 +6,5 @@ eval "$(./conda/Scripts/conda.exe 'shell.bash' 'hook')"
6
6
conda activate ./env
7
7
8
8
export PYTORCH_TEST_WITH_SLOW=' 1'
9
- if [ " ${CU_VERSION:- } " == cpu ] ; then
10
- NUMPROCESSES=" auto"
11
- export OMP_NUM_THREADS=" 1"
12
- else
13
- NUMPROCESSES=" 1"
14
- fi
15
-
16
9
python -m torch.utils.collect_env
17
- pytest \
18
- --numprocesses=$NUMPROCESSES \
19
- --timeout=300 \
20
- --cov=torchvision \
21
- --junitxml=test-results/junit.xml \
22
- --verbose \
23
- --durations 20 \
24
- --ignore=test/test_datasets_download.py \
25
- test
10
+ pytest --cov=torchvision --junitxml=test-results/junit.xml -v --durations 20 test --ignore=test/test_datasets_download.py
You can’t perform that action at this time.
0 commit comments