@@ -36,16 +36,15 @@ jobs:
36
36
python-version : [3.9]
37
37
transformers-version : [latest]
38
38
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}
42
39
43
40
runs-on : ${{ matrix.runs-on }}
44
41
45
42
steps :
46
43
- name : Free Disk Space (Ubuntu)
47
44
if : matrix.runs-on == 'ubuntu-22.04'
48
45
uses : jlumbroso/free-disk-space@main
46
+ with :
47
+ swap-storage : false
49
48
50
49
- name : Free Disk Space (macOS)
51
50
if : matrix.runs-on == 'macos-15'
@@ -69,25 +68,15 @@ jobs:
69
68
pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
70
69
pip install .[tests,onnxruntime] diffusers
71
70
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
-
82
71
- name : Test with pytest (in series)
83
72
run : |
84
73
pytest tests/onnxruntime -m "run_in_series" --durations=0 -vvvv
85
74
env :
86
75
RUN_SLOW : 1
87
-
76
+
88
77
- name : Test with pytest (in parallel)
89
78
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
91
80
env :
92
81
HF_HUB_READ_TOKEN : ${{ secrets.HF_HUB_READ_TOKEN }}
93
82
RUN_SLOW : 1
0 commit comments