1
+ name : Build and test linux wheels
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - nightly
8
+ - main
9
+ - release/*
10
+ tags :
11
+ # NOTE: Binary build pipelines should only get triggered on release candidate builds
12
+ # Release candidate tags look like: v1.11.0-rc1
13
+ - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
14
+ workflow_dispatch :
15
+
16
+ jobs :
17
+ generate-matrix :
18
+ uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
19
+ with :
20
+ package-type : wheel
21
+ os : linux
22
+ test-infra-repository : pytorch/test-infra
23
+ test-infra-ref : main
24
+ with-rocm : false
25
+ with-cpu : false
26
+
27
+ build :
28
+ needs : generate-matrix
29
+ strategy :
30
+ fail-fast : false
31
+ matrix :
32
+ include :
33
+ - repository : pytorch/tensorrt
34
+ pre-script : packaging/pre_build_script.sh
35
+ env-var-script : packaging/env_vars.txt
36
+ post-script : " "
37
+ smoke-test-script : " "
38
+ package-name : torch_tensorrt
39
+ name : Build torch-tensorrt whl package
40
+ uses : pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
41
+ with :
42
+ repository : ${{ matrix.repository }}
43
+ ref : " "
44
+ test-infra-repository : pytorch/test-infra
45
+ test-infra-ref : main
46
+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
47
+ pre-script : ${{ matrix.pre-script }}
48
+ env-var-script : ${{ matrix.env-var-script }}
49
+ post-script : ${{ matrix.post-script }}
50
+ package-name : ${{ matrix.package-name }}
51
+ smoke-test-script : ${{ matrix.smoke-test-script }}
52
+ trigger-event : ${{ github.event_name }}
53
+ secrets :
54
+ AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID : ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
55
+ AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY : ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
56
+
57
+ # tests-py-torchscript-fe:
58
+ # name: Test torchscript frontend [Python]
59
+ # needs: [generate-matrix, build]
60
+ # strategy:
61
+ # fail-fast: false
62
+ # matrix:
63
+ # include:
64
+ # - repository: pytorch/tensorrt
65
+ # package-name: torch_tensorrt
66
+ # pre-script: packaging/pre_build_script.sh
67
+ # uses: pytorch/tensorrt/.github/workflows/linux-test.yml@gha-ci-infra
68
+ # with:
69
+ # job-name: tests-py-torchscript-fe
70
+ # repository: "pytorch/tensorrt"
71
+ # ref: ""
72
+ # test-infra-repository: pytorch/test-infra
73
+ # test-infra-ref: main
74
+ # build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
75
+ # pre-script: ${{ matrix.pre-script }}
76
+ # script: |
77
+ # export USE_HOST_DEPS=1
78
+ # pushd .
79
+ # cd tests/modules
80
+ # ${CONDA_RUN} python -m pip install -r requirements.txt
81
+ # ${CONDA_RUN} python hub.py
82
+ # popd
83
+ # pushd .
84
+ # cd tests/py/ts
85
+ # ${CONDA_RUN} python -m pip install --pre pytest timm transformers parameterized expecttest --use-deprecated=legacy-resolver
86
+ # ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/
87
+ # ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
88
+ # ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
89
+ # popd
90
+
91
+ tests-py-dynamo-converters :
92
+ name : Test dynamo converters [Python]
93
+ needs : [generate-matrix, build]
94
+ strategy :
95
+ fail-fast : false
96
+ matrix :
97
+ include :
98
+ - repository : pytorch/tensorrt
99
+ package-name : torch_tensorrt
100
+ pre-script : packaging/pre_build_script.sh
101
+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@gha-ci-infra
102
+ with :
103
+ job-name : tests-py-dynamo-converters
104
+ repository : " pytorch/tensorrt"
105
+ ref : " "
106
+ test-infra-repository : pytorch/test-infra
107
+ test-infra-ref : main
108
+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
109
+ pre-script : ${{ matrix.pre-script }}
110
+ script : |
111
+ export USE_HOST_DEPS=1
112
+ pushd .
113
+ cd tests/modules
114
+ ${CONDA_RUN} python -m pip install -r requirements.txt
115
+ ${CONDA_RUN} python hub.py
116
+ popd
117
+ pushd .
118
+ cd tests/py/dynamo
119
+ ${CONDA_RUN} python -m pip install --pre pytest-xdist timm transformers parameterized expecttest --use-deprecated=legacy-resolver
120
+ ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 10 conversion/
121
+ popd
122
+
123
+ tests-py-dynamo-fe :
124
+ name : Test dynamo frontend [Python]
125
+ needs : [generate-matrix, build]
126
+ strategy :
127
+ fail-fast : false
128
+ matrix :
129
+ include :
130
+ - repository : pytorch/tensorrt
131
+ package-name : torch_tensorrt
132
+ pre-script : packaging/pre_build_script.sh
133
+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@gha-ci-infra
134
+ with :
135
+ job-name : tests-py-dynamo-fe
136
+ repository : " pytorch/tensorrt"
137
+ ref : " "
138
+ test-infra-repository : pytorch/test-infra
139
+ test-infra-ref : main
140
+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
141
+ pre-script : ${{ matrix.pre-script }}
142
+ script : |
143
+ export USE_HOST_DEPS=1
144
+ pushd .
145
+ cd tests/py/dynamo
146
+ ${CONDA_RUN} python -m pip install --pre pytest timm transformers parameterized expecttest --use-deprecated=legacy-resolver
147
+ ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_fe_test_results.xml --ir dynamo models/test_models_export.py
148
+ popd
149
+
150
+ tests-py-torch-compile-be :
151
+ name : Test torch compile backend [Python]
152
+ needs : [generate-matrix, build]
153
+ strategy :
154
+ fail-fast : false
155
+ matrix :
156
+ include :
157
+ - repository : pytorch/tensorrt
158
+ package-name : torch_tensorrt
159
+ pre-script : packaging/pre_build_script.sh
160
+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@gha-ci-infra
161
+ with :
162
+ job-name : tests-py-torch-compile-be
163
+ repository : " pytorch/tensorrt"
164
+ ref : " "
165
+ test-infra-repository : pytorch/test-infra
166
+ test-infra-ref : main
167
+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
168
+ pre-script : ${{ matrix.pre-script }}
169
+ script : |
170
+ export USE_HOST_DEPS=1
171
+ pushd .
172
+ cd tests/py/dynamo
173
+ ${CONDA_RUN} python -m pip install --pre pytest-xdist timm transformers parameterized expecttest --use-deprecated=legacy-resolver
174
+ ${CONDA_RUN} python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/
175
+ ${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
176
+ popd
177
+
178
+ tests-py-dynamo-core :
179
+ name : Test dynamo core [Python]
180
+ needs : [generate-matrix, build]
181
+ strategy :
182
+ fail-fast : false
183
+ matrix :
184
+ include :
185
+ - repository : pytorch/tensorrt
186
+ package-name : torch_tensorrt
187
+ pre-script : packaging/pre_build_script.sh
188
+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@gha-ci-infra
189
+ with :
190
+ job-name : tests-py-dynamo-core
191
+ repository : " pytorch/tensorrt"
192
+ ref : " "
193
+ test-infra-repository : pytorch/test-infra
194
+ test-infra-ref : main
195
+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
196
+ pre-script : ${{ matrix.pre-script }}
197
+ script : |
198
+ export USE_HOST_DEPS=1
199
+ pushd .
200
+ cd tests/py/dynamo
201
+ ${CONDA_RUN} python -m pip install --pre pytest-xdist timm transformers parameterized expecttest --use-deprecated=legacy-resolver
202
+ ${CONDA_RUN} python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/
203
+ ${CONDA_RUN} python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
204
+ ${CONDA_RUN} python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
205
+ popd
0 commit comments