Skip to content

Commit 371fe76

Browse files
committed
install requirements
1 parent afa9547 commit 371fe76

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

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

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ jobs:
136136
export USE_HOST_DEPS=1
137137
export CI_BUILD=1
138138
pushd .
139-
cd tests/py/dynamo
139+
cd tests/py
140+
python -m pip install -r requirements.txt
141+
cd dynamo
140142
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 4 conversion/
141143
popd
142144
@@ -165,7 +167,9 @@ jobs:
165167
export USE_HOST_DEPS=1
166168
export CI_BUILD=1
167169
pushd .
168-
cd tests/py/dynamo
170+
cd tests/py
171+
python -m pip install -r requirements.txt
172+
cd dynamo
169173
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/
170174
popd
171175
@@ -194,7 +198,9 @@ jobs:
194198
export USE_HOST_DEPS=1
195199
export CI_BUILD=1
196200
pushd .
197-
cd tests/py/dynamo
201+
cd tests/py
202+
python -m pip install -r requirements.txt
203+
cd dynamo
198204
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py
199205
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/reexport_test_results.xml --ir dynamo models/test_reexport.py
200206
popd
@@ -224,7 +230,9 @@ jobs:
224230
export USE_HOST_DEPS=1
225231
export CI_BUILD=1
226232
pushd .
227-
cd tests/py/dynamo
233+
cd tests/py
234+
python -m pip install -r requirements.txt
235+
cd dynamo
228236
python -m pytest -ra -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/
229237
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
230238
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py
@@ -255,7 +263,9 @@ jobs:
255263
export USE_HOST_DEPS=1
256264
export CI_BUILD=1
257265
pushd .
258-
cd tests/py/dynamo
266+
cd tests/py
267+
python -m pip install -r requirements.txt
268+
cd dynamo
259269
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/
260270
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
261271
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
@@ -286,7 +296,9 @@ jobs:
286296
export USE_HOST_DEPS=1
287297
export CI_BUILD=1
288298
pushd .
289-
cd tests/py/dynamo
299+
cd tests/py
300+
python -m pip install -r requirements.txt
301+
cd dynamo
290302
nvidia-smi
291303
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
292304
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

0 commit comments

Comments
 (0)