24
24
with-rocm : false
25
25
with-cpu : false
26
26
27
- build :
27
+ substitute-runner :
28
28
needs : generate-matrix
29
+ outputs :
30
+ matrix : ${{ steps.substitute.outputs.matrix }}
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - name : Substitute runner
34
+ id : substitute
35
+ run : |
36
+ echo matrix="$(echo '${{ needs.generate-matrix.outputs.matrix }}' | sed -e 's/windows.8xlarge.nvidia.gpu/windows.g5.4xlarge.nvidia.gpu/g')" >> ${GITHUB_OUTPUT}
37
+
38
+ build :
39
+ needs : substitute-runner
29
40
permissions :
30
41
id-token : write
31
42
contents : read
35
46
include :
36
47
- repository : pytorch/tensorrt
37
48
pre-script : packaging/pre_build_script_windows.sh
49
+ env-script : packaging/vc_env_helper.bat
38
50
smoke-test-script : packaging/smoke_test_windows.py
39
51
package-name : torch_tensorrt
40
52
name : Build torch-tensorrt whl package
@@ -44,12 +56,44 @@ jobs:
44
56
ref : " "
45
57
test-infra-repository : pytorch/test-infra
46
58
test-infra-ref : main
47
- build-matrix : ${{ needs.generate-matrix .outputs.matrix }}
59
+ build-matrix : ${{ needs.substitute-runner .outputs.matrix }}
48
60
pre-script : ${{ matrix.pre-script }}
61
+ env-script : ${{ matrix.env-script }}
49
62
smoke-test-script : ${{ matrix.smoke-test-script }}
50
63
package-name : ${{ matrix.package-name }}
51
64
trigger-event : ${{ github.event_name }}
52
65
66
+ tests-py-torchscript-fe :
67
+ name : Test torchscript frontend [Python]
68
+ needs : [generate-matrix, build]
69
+ strategy :
70
+ fail-fast : false
71
+ matrix :
72
+ include :
73
+ - repository : pytorch/tensorrt
74
+ package-name : torch_tensorrt
75
+ uses : ./.github/workflows/windows-test.yml
76
+ with :
77
+ job-name : tests-py-torchscript-fe
78
+ repository : ${{ matrix.repository }}
79
+ ref : " "
80
+ test-infra-repository : pytorch/test-infra
81
+ test-infra-ref : main
82
+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
83
+ pre-script : packaging/driver_upgrade.bat
84
+ script : |
85
+ export USE_HOST_DEPS=1
86
+ pushd .
87
+ cd tests/modules
88
+ python hub.py
89
+ popd
90
+ pushd .
91
+ cd tests/py/ts
92
+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/
93
+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
94
+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
95
+ popd
96
+
53
97
tests-py-dynamo-converters :
54
98
name : Test dynamo converters [Python]
55
99
needs : [generate-matrix, build]
62
106
uses : ./.github/workflows/windows-test.yml
63
107
with :
64
108
job-name : tests-py-dynamo-converters
65
- repository : " pytorch/tensorrt "
109
+ repository : ${{ matrix.repository }}
66
110
ref : " "
67
111
test-infra-repository : pytorch/test-infra
68
112
test-infra-ref : main
72
116
export USE_HOST_DEPS=1
73
117
pushd .
74
118
cd tests/py/dynamo
75
- ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 10 conversion/
119
+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 10 conversion/
76
120
popd
77
121
78
122
tests-py-dynamo-fe :
@@ -87,7 +131,33 @@ jobs:
87
131
uses : ./.github/workflows/windows-test.yml
88
132
with :
89
133
job-name : tests-py-dynamo-fe
90
- repository : " pytorch/tensorrt"
134
+ repository : ${{ matrix.repository }}
135
+ ref : " "
136
+ test-infra-repository : pytorch/test-infra
137
+ test-infra-ref : main
138
+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
139
+ pre-script : packaging/driver_upgrade.bat
140
+ script : |
141
+ export USE_HOST_DEPS=1
142
+ pushd .
143
+ cd tests/py/dynamo
144
+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_fe_test_results.xml --ir dynamo models/test_models_export.py
145
+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/test_dyn_models.py
146
+ popd
147
+
148
+ tests-py-dynamo-serde :
149
+ name : Test dynamo export serde [Python]
150
+ needs : [generate-matrix, build]
151
+ strategy :
152
+ fail-fast : false
153
+ matrix :
154
+ include :
155
+ - repository : pytorch/tensorrt
156
+ package-name : torch_tensorrt
157
+ uses : ./.github/workflows/windows-test.yml
158
+ with :
159
+ job-name : tests-py-dynamo-serde
160
+ repository : ${{ matrix.repository }}
91
161
ref : " "
92
162
test-infra-repository : pytorch/test-infra
93
163
test-infra-ref : main
97
167
export USE_HOST_DEPS=1
98
168
pushd .
99
169
cd tests/py/dynamo
100
- ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_fe_test_results.xml --ir dynamo models/test_models_export.py
101
- ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/test_dyn_models.py
170
+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py
102
171
popd
103
172
104
173
tests-py-torch-compile-be :
@@ -117,14 +186,15 @@ jobs:
117
186
ref : " "
118
187
test-infra-repository : pytorch/test-infra
119
188
test-infra-ref : main
120
- pre-script : packaging/driver_upgrade.bat
121
189
build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
190
+ pre-script : packaging/driver_upgrade.bat
122
191
script : |
123
192
export USE_HOST_DEPS=1
124
193
pushd .
125
194
cd tests/py/dynamo
126
- ${CONDA_RUN} python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/
127
- ${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
195
+ python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/
196
+ python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_comple_be_e2e_test_results.xml --ir torch_compile models/test_models.py
197
+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py
128
198
popd
129
199
130
200
tests-py-dynamo-core :
@@ -139,7 +209,7 @@ jobs:
139
209
uses : ./.github/workflows/windows-test.yml
140
210
with :
141
211
job-name : tests-py-dynamo-core
142
- repository : " pytorch/tensorrt "
212
+ repository : ${{ matrix.repository }}
143
213
ref : " "
144
214
test-infra-repository : pytorch/test-infra
145
215
test-infra-ref : main
@@ -149,11 +219,36 @@ jobs:
149
219
export USE_HOST_DEPS=1
150
220
pushd .
151
221
cd tests/py/dynamo
152
- ${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/
153
- ${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
154
- ${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
222
+ python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/
223
+ python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
224
+ python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
225
+ popd
226
+
227
+ tests-py-core :
228
+ name : Test core [Python]
229
+ needs : [generate-matrix, build]
230
+ strategy :
231
+ fail-fast : false
232
+ matrix :
233
+ include :
234
+ - repository : pytorch/tensorrt
235
+ package-name : torch_tensorrt
236
+ uses : ./.github/workflows/windows-test.yml
237
+ with :
238
+ job-name : tests-py-core
239
+ repository : ${{ matrix.repository }}
240
+ ref : " "
241
+ test-infra-repository : pytorch/test-infra
242
+ test-infra-ref : main
243
+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
244
+ pre-script : packaging/driver_upgrade.bat
245
+ script : |
246
+ export USE_HOST_DEPS=1
247
+ pushd .
248
+ cd tests/py/core
249
+ python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_core_test_results.xml .
155
250
popd
156
251
157
252
concurrency :
158
253
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
159
- cancel-in-progress : true
254
+ cancel-in-progress : true
0 commit comments