25
25
with-cpu : false
26
26
python-versions : ' ["3.11", "3.13", "3.12", "3.10", "3.9"]'
27
27
28
- filter-matrix :
29
- needs : [generate-matrix]
30
- outputs :
31
- matrix : ${{ steps.generate.outputs.matrix }}
32
- runs-on : ubuntu-latest
33
- steps :
34
- - uses : actions/setup-python@v5
35
- with :
36
- python-version : ' 3.11'
37
- - uses : actions/checkout@v4
38
- with :
39
- repository : pytorch/tensorrt
40
- - name : Generate release matrix
41
- id : generate
42
- run : |
43
- set -eou pipefail
44
- MATRIX_BLOB=${{ toJSON(needs.generate-matrix.outputs.matrix) }}
45
- MATRIX_BLOB="$(python3 .github/scripts/filter-matrix.py --matrix "${MATRIX_BLOB}")"
46
- echo "${MATRIX_BLOB}"
47
- echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
48
-
49
28
build :
50
- needs : filter -matrix
29
+ needs : generate -matrix
51
30
permissions :
52
31
id-token : write
53
32
contents : read
68
47
ref : " "
69
48
test-infra-repository : pytorch/test-infra
70
49
test-infra-ref : main
71
- build-matrix : ${{ needs.filter -matrix.outputs.matrix }}
50
+ build-matrix : ${{ needs.generate -matrix.outputs.matrix }}
72
51
pre-script : ${{ matrix.pre-script }}
73
52
env-var-script : ${{ matrix.env-var-script }}
74
53
post-script : ${{ matrix.post-script }}
78
57
79
58
tests-py-torchscript-fe :
80
59
name : Test torchscript frontend [Python]
81
- needs : [filter -matrix, build]
60
+ needs : [generate -matrix, build]
82
61
strategy :
83
62
fail-fast : false
84
63
matrix :
95
74
ref : " "
96
75
test-infra-repository : pytorch/test-infra
97
76
test-infra-ref : main
98
- build-matrix : ${{ needs.filter -matrix.outputs.matrix }}
77
+ build-matrix : ${{ needs.generate -matrix.outputs.matrix }}
99
78
pre-script : ${{ matrix.pre-script }}
100
79
script : |
101
80
export USE_HOST_DEPS=1
114
93
115
94
tests-py-dynamo-converters :
116
95
name : Test dynamo converters [Python]
117
- needs : [filter -matrix, build]
96
+ needs : [generate -matrix, build]
118
97
strategy :
119
98
fail-fast : false
120
99
matrix :
@@ -131,7 +110,7 @@ jobs:
131
110
ref : " "
132
111
test-infra-repository : pytorch/test-infra
133
112
test-infra-ref : main
134
- build-matrix : ${{ needs.filter -matrix.outputs.matrix }}
113
+ build-matrix : ${{ needs.generate -matrix.outputs.matrix }}
135
114
pre-script : ${{ matrix.pre-script }}
136
115
script : |
137
116
export USE_HOST_DEPS=1
@@ -147,7 +126,7 @@ jobs:
147
126
148
127
tests-py-dynamo-fe :
149
128
name : Test dynamo frontend [Python]
150
- needs : [filter -matrix, build]
129
+ needs : [generate -matrix, build]
151
130
strategy :
152
131
fail-fast : false
153
132
matrix :
@@ -164,7 +143,7 @@ jobs:
164
143
ref : " "
165
144
test-infra-repository : pytorch/test-infra
166
145
test-infra-ref : main
167
- build-matrix : ${{ needs.filter -matrix.outputs.matrix }}
146
+ build-matrix : ${{ needs.generate -matrix.outputs.matrix }}
168
147
pre-script : ${{ matrix.pre-script }}
169
148
script : |
170
149
export USE_HOST_DEPS=1
@@ -178,7 +157,7 @@ jobs:
178
157
179
158
tests-py-dynamo-serde :
180
159
name : Test dynamo export serde [Python]
181
- needs : [filter -matrix, build]
160
+ needs : [generate -matrix, build]
182
161
strategy :
183
162
fail-fast : false
184
163
matrix :
@@ -195,7 +174,7 @@ jobs:
195
174
ref : " "
196
175
test-infra-repository : pytorch/test-infra
197
176
test-infra-ref : main
198
- build-matrix : ${{ needs.filter -matrix.outputs.matrix }}
177
+ build-matrix : ${{ needs.generate -matrix.outputs.matrix }}
199
178
pre-script : ${{ matrix.pre-script }}
200
179
script : |
201
180
export USE_HOST_DEPS=1
@@ -210,7 +189,7 @@ jobs:
210
189
211
190
tests-py-torch-compile-be :
212
191
name : Test torch compile backend [Python]
213
- needs : [filter -matrix, build]
192
+ needs : [generate -matrix, build]
214
193
strategy :
215
194
fail-fast : false
216
195
matrix :
@@ -227,7 +206,7 @@ jobs:
227
206
ref : " "
228
207
test-infra-repository : pytorch/test-infra
229
208
test-infra-ref : main
230
- build-matrix : ${{ needs.filter -matrix.outputs.matrix }}
209
+ build-matrix : ${{ needs.generate -matrix.outputs.matrix }}
231
210
pre-script : ${{ matrix.pre-script }}
232
211
script : |
233
212
export USE_HOST_DEPS=1
@@ -243,7 +222,7 @@ jobs:
243
222
244
223
tests-py-dynamo-core :
245
224
name : Test dynamo core [Python]
246
- needs : [filter -matrix, build]
225
+ needs : [generate -matrix, build]
247
226
strategy :
248
227
fail-fast : false
249
228
matrix :
@@ -260,7 +239,7 @@ jobs:
260
239
ref : " "
261
240
test-infra-repository : pytorch/test-infra
262
241
test-infra-ref : main
263
- build-matrix : ${{ needs.filter -matrix.outputs.matrix }}
242
+ build-matrix : ${{ needs.generate -matrix.outputs.matrix }}
264
243
pre-script : ${{ matrix.pre-script }}
265
244
script : |
266
245
export USE_HOST_DEPS=1
@@ -276,7 +255,7 @@ jobs:
276
255
277
256
tests-py-dynamo-cudagraphs :
278
257
name : Test dynamo cudagraphs [Python]
279
- needs : [filter -matrix, build]
258
+ needs : [generate -matrix, build]
280
259
strategy :
281
260
fail-fast : false
282
261
matrix :
@@ -293,7 +272,7 @@ jobs:
293
272
ref : " "
294
273
test-infra-repository : pytorch/test-infra
295
274
test-infra-ref : main
296
- build-matrix : ${{ needs.filter -matrix.outputs.matrix }}
275
+ build-matrix : ${{ needs.generate -matrix.outputs.matrix }}
297
276
pre-script : ${{ matrix.pre-script }}
298
277
script : |
299
278
export USE_HOST_DEPS=1
@@ -309,7 +288,7 @@ jobs:
309
288
310
289
tests-py-core :
311
290
name : Test core [Python]
312
- needs : [filter -matrix, build]
291
+ needs : [generate -matrix, build]
313
292
strategy :
314
293
fail-fast : false
315
294
matrix :
@@ -326,7 +305,7 @@ jobs:
326
305
ref : " "
327
306
test-infra-repository : pytorch/test-infra
328
307
test-infra-ref : main
329
- build-matrix : ${{ needs.filter -matrix.outputs.matrix }}
308
+ build-matrix : ${{ needs.generate -matrix.outputs.matrix }}
330
309
pre-script : ${{ matrix.pre-script }}
331
310
script : |
332
311
export USE_HOST_DEPS=1
0 commit comments