Skip to content

Commit f7d4590

Browse files
authored
[mlir-python-bindings] only run tests for PR (#224)
1 parent 4f59995 commit f7d4590

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build_mlir_python_bindings_wheel.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ jobs:
191191

192192
test-mlir-python-bindings:
193193

194+
if: github.event_name == 'pull_request'
195+
194196
needs: [build-mlir-python-bindings]
195197

196198
strategy:
@@ -273,7 +275,9 @@ jobs:
273275
release-mlir-python-bindings:
274276

275277
if: (github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'workflow_dispatch'
276-
needs: [test-mlir-python-bindings]
278+
279+
needs: [build-mlir-python-bindings]
280+
277281
runs-on: "ubuntu-22.04"
278282

279283
permissions:
@@ -441,7 +445,7 @@ jobs:
441445

442446
if: (github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'workflow_dispatch'
443447

444-
needs: [test-mlir-python-bindings]
448+
needs: [build-mlir-python-bindings]
445449

446450
permissions:
447451
contents: read

0 commit comments

Comments
 (0)