@@ -111,16 +111,19 @@ jobs:
111
111
- name : Install dependencies
112
112
run : |
113
113
apt-get update && apt-get install libsndfile1-dev libgl1 -y
114
- python -m pip install -e .[quality,test]
115
- python -m pip install accelerate
114
+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
115
+ python -m uv pip install -e [quality,test]
116
+ python -m uv pip install accelerate
116
117
117
118
- name : Environment
118
119
run : |
120
+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
119
121
python utils/print_env.py
120
122
121
123
- name : Run fast PyTorch Pipeline CPU tests
122
124
if : ${{ matrix.config.framework == 'pytorch_pipelines' }}
123
125
run : |
126
+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
124
127
python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
125
128
-s -v -k "not Flax and not Onnx" \
126
129
--make-reports=tests_${{ matrix.config.report }} \
@@ -129,6 +132,7 @@ jobs:
129
132
- name : Run fast PyTorch Model Scheduler CPU tests
130
133
if : ${{ matrix.config.framework == 'pytorch_models' }}
131
134
run : |
135
+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
132
136
python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
133
137
-s -v -k "not Flax and not Onnx and not Dependency" \
134
138
--make-reports=tests_${{ matrix.config.report }} \
@@ -137,6 +141,7 @@ jobs:
137
141
- name : Run fast Flax TPU tests
138
142
if : ${{ matrix.config.framework == 'flax' }}
139
143
run : |
144
+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
140
145
python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
141
146
-s -v -k "Flax" \
142
147
--make-reports=tests_${{ matrix.config.report }} \
@@ -145,7 +150,8 @@ jobs:
145
150
- name : Run example PyTorch CPU tests
146
151
if : ${{ matrix.config.framework == 'pytorch_examples' }}
147
152
run : |
148
- python -m pip install peft
153
+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
154
+ python -m uv pip install peft
149
155
python -m pytest -n 2 --max-worker-restart=0 --dist=loadfile \
150
156
--make-reports=tests_${{ matrix.config.report }} \
151
157
examples
@@ -194,15 +200,18 @@ jobs:
194
200
- name : Install dependencies
195
201
run : |
196
202
apt-get update && apt-get install libsndfile1-dev libgl1 -y
197
- python -m pip install -e .[quality,test]
203
+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
204
+ python -m uv pip install -e [quality,test]
198
205
199
206
- name : Environment
200
207
run : |
208
+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
201
209
python utils/print_env.py
202
210
203
211
- name : Run Hub tests for models, schedulers, and pipelines on a staging env
204
212
if : ${{ matrix.config.framework == 'hub_tests_pytorch' }}
205
213
run : |
214
+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
206
215
HUGGINGFACE_CO_STAGING=true python -m pytest \
207
216
-m "is_staging_test" \
208
217
--make-reports=tests_${{ matrix.config.report }} \
0 commit comments