Skip to content

Commit 00f63dd

Browse files
committed
Add smoke test exit(0)
1 parent 12c71d6 commit 00f63dd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build-test.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
pre-script: packaging/pre_build_script.sh
3636
env-var-script: packaging/env_vars.txt
3737
post-script: ""
38-
smoke-test-script: ""
38+
smoke-test-script: "packaging/smoke_test.py"
3939
package-name: torch_tensorrt
4040
name: Build torch-tensorrt whl package
4141
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.2
@@ -74,6 +74,7 @@ jobs:
7474
test-infra-repository: pytorch/test-infra
7575
test-infra-ref: release/2.2
7676
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
77+
smoke-test-script: ${{ matrix.smoke-test-script }}
7778
pre-script: ${{ matrix.pre-script }}
7879
script: |
7980
export USE_HOST_DEPS=1
@@ -110,6 +111,7 @@ jobs:
110111
test-infra-repository: pytorch/test-infra
111112
test-infra-ref: release/2.2
112113
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
114+
smoke-test-script: ${{ matrix.smoke-test-script }}
113115
pre-script: ${{ matrix.pre-script }}
114116
script: |
115117
export USE_HOST_DEPS=1
@@ -138,6 +140,7 @@ jobs:
138140
test-infra-repository: pytorch/test-infra
139141
test-infra-ref: release/2.2
140142
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
143+
smoke-test-script: ${{ matrix.smoke-test-script }}
141144
pre-script: ${{ matrix.pre-script }}
142145
script: |
143146
export USE_HOST_DEPS=1
@@ -168,6 +171,7 @@ jobs:
168171
test-infra-repository: pytorch/test-infra
169172
test-infra-ref: release/2.2
170173
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
174+
smoke-test-script: ${{ matrix.smoke-test-script }}
171175
pre-script: ${{ matrix.pre-script }}
172176
script: |
173177
export USE_HOST_DEPS=1
@@ -197,6 +201,7 @@ jobs:
197201
test-infra-repository: pytorch/test-infra
198202
test-infra-ref: release/2.2
199203
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
204+
smoke-test-script: ${{ matrix.smoke-test-script }}
200205
pre-script: ${{ matrix.pre-script }}
201206
script: |
202207
export USE_HOST_DEPS=1

packaging/smoke_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exit(0)

0 commit comments

Comments
 (0)