Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/pytorch-version-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
- pytorch-version: 1.4.0
python-version: 3.9
- pytorch-version: 1.5.1
python-version: 3.9
python-version: 3.9
- pytorch-version: 1.6.0
python-version: 3.9
python-version: 3.9
# disabling python 3.9 support with PyTorch 1.7.1 and 1.8.1, to stop repeated pytorch-version test fail.
# https://github.com/pytorch/ignite/issues/2383
- pytorch-version: 1.7.1
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
python setup.py install

- name: Install appropriate Pillow for PyTorch 1.3.1
shell: bash -l {0}
shell: bash -l {0}
if: ${{ matrix.pytorch-version == '1.3.1' }}
run: |
pip install --upgrade 'Pillow<7'
Expand All @@ -87,7 +87,7 @@ jobs:
- name: Run Tests
shell: bash -l {0}
run: |
bash tests/run_cpu_tests.sh
bash tests/run_cpu_tests.sh "not test_time_profilers"

create-issue:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion tests/run_cpu_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ else
skip_distrib_opt=(-m "")
fi

CUDA_VISIBLE_DEVICES="" pytest --tx 4*popen//python=python --cov ignite --cov-report term-missing --cov-report xml -vvv tests "${skip_distrib_opt[@]}"
MATCH_TESTS_EXPRESSION=${1:-""}

CUDA_VISIBLE_DEVICES="" pytest --tx 4*popen//python=python --cov ignite --cov-report term-missing --cov-report xml -vvv tests "${skip_distrib_opt[@]}" -k "$MATCH_TESTS_EXPRESSION"

# https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02
if [ "${SKIP_DISTRIB_TESTS:-0}" -eq "1" ]; then
Expand Down