Skip to content

Commit 7631c1a

Browse files
authored
Add label to trigger TPU tests manually. (#21897)
Adding the "run_tpu_tests" label will now trigger TPU tests regardless of approval status.
1 parent 65502d6 commit 7631c1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/tpu_tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ name: Keras Tests
66
on:
77
push:
88
branches: [ master ]
9+
pull_request:
10+
types: [labeled]
911
pull_request_review:
1012
types: [submitted]
1113
release:
@@ -19,10 +21,11 @@ jobs:
1921
test-in-container:
2022
name: Run tests on TPU
2123
runs-on: linux-x86-ct6e-44-1tpu
22-
# Only run on approved PRs, pushes to master, or releases
24+
# Only run on approved PRs, pushes to master, releases or "run_tpu_tests" labels
2325
if: |
2426
github.event_name == 'push' ||
2527
github.event_name == 'release' ||
28+
(github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'run_tpu_tests') ||
2629
(github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
2730
2831
strategy:

0 commit comments

Comments
 (0)