@@ -36,16 +36,15 @@ jobs:
3636 python-version : [3.9]
3737 transformers-version : [latest]
3838 runs-on : [ubuntu-22.04, windows-2022]
39- include :
40- - {python-version: 3.9, transformers-version: 4.36.*, runs-on: ubuntu-22.04}
41- - {python-version: 3.9, transformers-version: 4.45.*, runs-on: ubuntu-22.04}
4239
4340 runs-on : ${{ matrix.runs-on }}
4441
4542 steps :
4643 - name : Free Disk Space (Ubuntu)
4744 if : matrix.runs-on == 'ubuntu-22.04'
4845 uses : jlumbroso/free-disk-space@main
46+ with :
47+ swap-storage : false
4948
5049 - name : Free Disk Space (macOS)
5150 if : matrix.runs-on == 'macos-15'
@@ -69,25 +68,15 @@ jobs:
6968 pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
7069 pip install .[tests,onnxruntime] diffusers
7170
72- - name : Install transformers ${{ matrix.transformers-version }}
73- if : ${{ matrix.transformers-version == '4.36.*' }}
74- run : |
75- pip install "transformers==${{ matrix.transformers-version }}" "diffusers<0.32.0"
76-
77- - name : Install transformers ${{ matrix.transformers-version }}
78- if : ${{ matrix.transformers-version == '4.45.*' }}
79- run : |
80- pip install "transformers==${{ matrix.transformers-version }}" "diffusers<0.33.0"
81-
8271 - name : Test with pytest (in series)
8372 run : |
8473 pytest tests/onnxruntime -m "run_in_series" --durations=0 -vvvv
8574 env :
8675 RUN_SLOW : 1
87-
76+
8877 - name : Test with pytest (in parallel)
8978 run : |
90- pytest tests/onnxruntime -m "not run_in_series" --durations=0 -vvvv -n auto
79+ pytest tests/onnxruntime -m "not run_in_series" --durations=0 -vvvv
9180 env :
9281 HF_HUB_READ_TOKEN : ${{ secrets.HF_HUB_READ_TOKEN }}
9382 RUN_SLOW : 1
0 commit comments