66
66
package-name : torch_tensorrt
67
67
pre-script : packaging/pre_build_script.sh
68
68
post-script : packaging/post_build_script.sh
69
+ smoke-test-script : packaging/smoke_test_script.sh
69
70
uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
70
71
with :
71
72
job-name : tests-py-torchscript-fe
@@ -80,13 +81,10 @@ jobs:
80
81
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
81
82
pushd .
82
83
cd tests/modules
83
- # Don't use requirements.txt here as it contains tensorrt and torch which should have been installed by now.
84
- ${CONDA_RUN} python -m pip install numpy packaging pyyaml transformers==4.39.3 timm==0.9.16 pybind11==2.6.2
85
84
${CONDA_RUN} python hub.py
86
85
popd
87
86
pushd .
88
87
cd tests/py/ts
89
- ${CONDA_RUN} python -m pip install --pre -r ../requirements.txt
90
88
${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/
91
89
${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
92
90
${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
@@ -103,6 +101,7 @@ jobs:
103
101
package-name : torch_tensorrt
104
102
pre-script : packaging/pre_build_script.sh
105
103
post-script : packaging/post_build_script.sh
104
+ smoke-test-script : packaging/smoke_test_script.sh
106
105
uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
107
106
with :
108
107
job-name : tests-py-dynamo-converters
@@ -116,7 +115,6 @@ jobs:
116
115
export USE_HOST_DEPS=1
117
116
pushd .
118
117
cd tests/py/dynamo
119
- ${CONDA_RUN} python -m pip install --pre -r ../requirements.txt
120
118
${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 10 conversion/
121
119
popd
122
120
@@ -131,6 +129,7 @@ jobs:
131
129
package-name : torch_tensorrt
132
130
pre-script : packaging/pre_build_script.sh
133
131
post-script : packaging/post_build_script.sh
132
+ smoke-test-script : packaging/smoke_test_script.sh
134
133
uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
135
134
with :
136
135
job-name : tests-py-dynamo-fe
@@ -144,7 +143,6 @@ jobs:
144
143
export USE_HOST_DEPS=1
145
144
pushd .
146
145
cd tests/py/dynamo
147
- ${CONDA_RUN} python -m pip install --pre -r ../requirements.txt
148
146
${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_fe_test_results.xml --ir dynamo models/test_models_export.py
149
147
${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/test_dyn_models.py
150
148
popd
@@ -160,6 +158,7 @@ jobs:
160
158
package-name : torch_tensorrt
161
159
pre-script : packaging/pre_build_script.sh
162
160
post-script : packaging/post_build_script.sh
161
+ smoke-test-script : packaging/smoke_test_script.sh
163
162
uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
164
163
with :
165
164
job-name : tests-py-dynamo-serde
@@ -173,7 +172,6 @@ jobs:
173
172
export USE_HOST_DEPS=1
174
173
pushd .
175
174
cd tests/py/dynamo
176
- ${CONDA_RUN} python -m pip install --pre -r ../requirements.txt
177
175
${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py
178
176
popd
179
177
@@ -188,6 +186,7 @@ jobs:
188
186
package-name : torch_tensorrt
189
187
pre-script : packaging/pre_build_script.sh
190
188
post-script : packaging/post_build_script.sh
189
+ smoke-test-script : packaging/smoke_test_script.sh
191
190
uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
192
191
with :
193
192
job-name : tests-py-torch-compile-be
@@ -201,7 +200,6 @@ jobs:
201
200
export USE_HOST_DEPS=1
202
201
pushd .
203
202
cd tests/py/dynamo
204
- ${CONDA_RUN} python -m pip install --pre -r ../requirements.txt
205
203
${CONDA_RUN} python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/
206
204
${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_comple_be_e2e_test_results.xml --ir torch_compile models/test_models.py
207
205
${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py
@@ -218,6 +216,7 @@ jobs:
218
216
package-name : torch_tensorrt
219
217
pre-script : packaging/pre_build_script.sh
220
218
post-script : packaging/post_build_script.sh
219
+ smoke-test-script : packaging/smoke_test_script.sh
221
220
uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
222
221
with :
223
222
job-name : tests-py-dynamo-core
@@ -231,7 +230,6 @@ jobs:
231
230
export USE_HOST_DEPS=1
232
231
pushd .
233
232
cd tests/py/dynamo
234
- ${CONDA_RUN} python -m pip install --pre -r ../requirements.txt
235
233
${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/
236
234
${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
237
235
${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
@@ -247,7 +245,9 @@ jobs:
247
245
- repository : pytorch/tensorrt
248
246
package-name : torch_tensorrt
249
247
pre-script : packaging/pre_build_script.sh
250
- uses : pytorch/tensorrt/.github/workflows/linux-test.yml@main
248
+ post-script : packaging/post_build_script.sh
249
+ smoke-test-script : packaging/smoke_test_script.sh
250
+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
251
251
with :
252
252
job-name : tests-py-core
253
253
repository : " pytorch/tensorrt"
@@ -260,6 +260,5 @@ jobs:
260
260
export USE_HOST_DEPS=1
261
261
pushd .
262
262
cd tests/py/core
263
- ${CONDA_RUN} python -m pip install --pre -r ../requirements.txt
264
263
${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_core_test_results.xml .
265
264
popd
0 commit comments