mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
feature: boost speed of pytest
This commit is contained in:
parent
07eb2f1200
commit
ca4fb7d154
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
||||
- name: Install testing dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pytest pytest-timeout expecttest
|
||||
pip install pytest pytest-timeout expecttest pytest-xdist
|
||||
- name: Install torch on mac
|
||||
if: startsWith(matrix.os, 'macOS')
|
||||
run: pip install --no-cache-dir torch==${{ matrix.torch }} torchvision==${{ matrix.torchvision }}
|
||||
@ -48,4 +48,5 @@ jobs:
|
||||
env:
|
||||
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4
|
||||
run: |
|
||||
pytest -vv --durations=0 ./tests
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
pytest -vv --durations=0 -n auto ./tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user