Skip to content

Commit ceebc1c

Browse files
committed
tests passed. install requirements for the rest workflows
1 parent 371fe76 commit ceebc1c

File tree

3 files changed

+54
-18
lines changed

3 files changed

+54
-18
lines changed

.github/workflows/build-test-tensorrt-linux.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ jobs:
128128
export USE_HOST_DEPS=1
129129
export CI_BUILD=1
130130
pushd .
131-
cd tests/py/dynamo
131+
cd tests/py
132+
python -m pip install -r requirements.txt
133+
cd dynamo
132134
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 4 conversion/
133135
popd
134136
@@ -157,7 +159,9 @@ jobs:
157159
export USE_HOST_DEPS=1
158160
export CI_BUILD=1
159161
pushd .
160-
cd tests/py/dynamo
162+
cd tests/py
163+
python -m pip install -r requirements.txt
164+
cd dynamo
161165
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/
162166
popd
163167
@@ -186,7 +190,9 @@ jobs:
186190
export USE_HOST_DEPS=1
187191
export CI_BUILD=1
188192
pushd .
189-
cd tests/py/dynamo
193+
cd tests/py
194+
python -m pip install -r requirements.txt
195+
cd dynamo
190196
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py
191197
popd
192198
@@ -215,7 +221,9 @@ jobs:
215221
export USE_HOST_DEPS=1
216222
export CI_BUILD=1
217223
pushd .
218-
cd tests/py/dynamo
224+
cd tests/py
225+
python -m pip install -r requirements.txt
226+
cd dynamo
219227
python -m pytest -ra -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/
220228
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_complete_be_e2e_test_results.xml --ir torch_compile models/test_models.py
221229
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py
@@ -246,7 +254,9 @@ jobs:
246254
export USE_HOST_DEPS=1
247255
export CI_BUILD=1
248256
pushd .
249-
cd tests/py/dynamo
257+
cd tests/py
258+
python -m pip install -r requirements.txt
259+
cd dynamo
250260
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml --ignore runtime/test_002_cudagraphs_py.py --ignore runtime/test_002_cudagraphs_cpp.py runtime/
251261
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
252262
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
@@ -277,7 +287,9 @@ jobs:
277287
export USE_HOST_DEPS=1
278288
export CI_BUILD=1
279289
pushd .
280-
cd tests/py/dynamo
290+
cd tests/py
291+
python -m pip install -r requirements.txt
292+
cd dynamo
281293
nvidia-smi
282294
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_cudagraphs_cpp_test_results.xml runtime/test_002_cudagraphs_cpp.py || true
283295
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_cudagraphs_py_test_results.xml runtime/test_002_cudagraphs_py.py || true

.github/workflows/build-test-tensorrt-windows.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ jobs:
131131
export USE_HOST_DEPS=1
132132
export CI_BUILD=1
133133
pushd .
134-
cd tests/py/dynamo
134+
cd tests/py
135+
python -m pip install -r requirements.txt
136+
cd dynamo
135137
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 4 conversion/
136138
popd
137139
@@ -157,7 +159,9 @@ jobs:
157159
export USE_HOST_DEPS=1
158160
export CI_BUILD=1
159161
pushd .
160-
cd tests/py/dynamo
162+
cd tests/py
163+
python -m pip install -r requirements.txt
164+
cd dynamo
161165
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/
162166
popd
163167
@@ -183,7 +187,9 @@ jobs:
183187
export USE_HOST_DEPS=1
184188
export CI_BUILD=1
185189
pushd .
186-
cd tests/py/dynamo
190+
cd tests/py
191+
python -m pip install -r requirements.txt
192+
cd dynamo
187193
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py
188194
popd
189195
@@ -209,7 +215,9 @@ jobs:
209215
export USE_HOST_DEPS=1
210216
export CI_BUILD=1
211217
pushd .
212-
cd tests/py/dynamo
218+
cd tests/py
219+
python -m pip install -r requirements.txt
220+
cd dynamo
213221
python -m pytest -ra -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/
214222
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_complete_be_e2e_test_results.xml --ir torch_compile models/test_models.py
215223
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py
@@ -237,7 +245,9 @@ jobs:
237245
export USE_HOST_DEPS=1
238246
export CI_BUILD=1
239247
pushd .
240-
cd tests/py/dynamo
248+
cd tests/py
249+
python -m pip install -r requirements.txt
250+
cd dynamo
241251
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml --ignore runtime/test_002_cudagraphs_py.py --ignore runtime/test_002_cudagraphs_cpp.py runtime/
242252
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
243253
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
@@ -265,7 +275,9 @@ jobs:
265275
export USE_HOST_DEPS=1
266276
export CI_BUILD=1
267277
pushd .
268-
cd tests/py/dynamo
278+
cd tests/py
279+
python -m pip install -r requirements.txt
280+
cd dynamo
269281
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_cudagraphs_cpp_test_results.xml runtime/test_002_cudagraphs_cpp.py
270282
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_cudagraphs_py_test_results.xml runtime/test_002_cudagraphs_py.py
271283
popd

.github/workflows/build-test-windows.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ jobs:
118118
export USE_HOST_DEPS=1
119119
export CI_BUILD=1
120120
pushd .
121-
cd tests/py/dynamo
121+
cd tests/py
122+
python -m pip install -r requirements.txt
123+
cd dynamo
122124
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 4 conversion/
123125
popd
124126
@@ -144,7 +146,9 @@ jobs:
144146
export USE_HOST_DEPS=1
145147
export CI_BUILD=1
146148
pushd .
147-
cd tests/py/dynamo
149+
cd tests/py
150+
python -m pip install -r requirements.txt
151+
cd dynamo
148152
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/
149153
popd
150154
@@ -170,7 +174,9 @@ jobs:
170174
export USE_HOST_DEPS=1
171175
export CI_BUILD=1
172176
pushd .
173-
cd tests/py/dynamo
177+
cd tests/py
178+
python -m pip install -r requirements.txt
179+
cd dynamo
174180
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py
175181
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/reexport_test_results.xml --ir dynamo models/test_reexport.py
176182
popd
@@ -197,7 +203,9 @@ jobs:
197203
export USE_HOST_DEPS=1
198204
export CI_BUILD=1
199205
pushd .
200-
cd tests/py/dynamo
206+
cd tests/py
207+
python -m pip install -r requirements.txt
208+
cd dynamo
201209
python -m pytest -ra -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/
202210
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_complete_be_e2e_test_results.xml --ir torch_compile models/test_models.py
203211
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py
@@ -225,7 +233,9 @@ jobs:
225233
export USE_HOST_DEPS=1
226234
export CI_BUILD=1
227235
pushd .
228-
cd tests/py/dynamo
236+
cd tests/py
237+
python -m pip install -r requirements.txt
238+
cd dynamo
229239
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml --ignore runtime/test_002_cudagraphs_py.py --ignore runtime/test_002_cudagraphs_cpp.py runtime/
230240
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
231241
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
@@ -253,7 +263,9 @@ jobs:
253263
export USE_HOST_DEPS=1
254264
export CI_BUILD=1
255265
pushd .
256-
cd tests/py/dynamo
266+
cd tests/py
267+
python -m pip install -r requirements.txt
268+
cd dynamo
257269
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_cudagraphs_cpp_test_results.xml runtime/test_002_cudagraphs_cpp.py
258270
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_cudagraphs_py_test_results.xml runtime/test_002_cudagraphs_py.py
259271
popd

0 commit comments

Comments
 (0)