File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed
Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 77 types : [unlabeled]
88 release :
99 types : [created]
10+ workflow_call :
1011
1112permissions :
1213 contents : read
1617 test-in-container :
1718 name : Run tests on GPU
1819 runs-on : linux-x86-g2-16-l4-1gpu
19- # Only run on pushes to master, releases or "kokoro:force-run" unlabel
20- if : |
21- github.event_name == 'push' ||
22- github.event_name == 'release' ||
23- (github.event.action == 'unlabeled' && github.event.label.name == 'kokoro:force-run')
2420
2521 strategy :
2622 fail-fast : false
Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ name: Keras TPU Tests
33on :
44 push :
55 branches : [master]
6- pull_request_target :
7- types : [unlabeled]
86 release :
97 types : [created]
8+ workflow_call :
109
1110permissions :
1211 contents : read
2221
2322 name : ${{ format('Run tests on {0}TPU', matrix.multi_device && 'multi-' || '') }}
2423 runs-on : ${{ matrix.multi_device && 'linux-x86-ct5lp-112-4tpu' || 'linux-x86-ct6e-44-1tpu' }}
25- # Only run on pushes to master, releases or "kokoro:force-run" unlabel
26- if : |
27- github.event_name == 'push' ||
28- github.event_name == 'release' ||
29- (github.event.action == 'unlabeled' && github.event.label.name == 'kokoro:force-run')
3024
3125 container :
3226 image : python:3.11-slim
Original file line number Diff line number Diff line change @@ -10,12 +10,19 @@ permissions:
1010 pull-requests : write
1111
1212jobs :
13- remove_label :
14- name : Remove Label
13+ trigger :
14+ name : Trigger and Remove Label
1515 runs-on : ubuntu-latest
1616 if : github.event.action == 'labeled' && github.event.label.name == 'kokoro:force-run'
1717 steps :
18- - uses : actions/github-script@v8
18+ - name : Trigger GPU Tests
19+ uses : ./.github/workflows/gpu_tests.yml
20+
21+ - name : Trigger TPU Tests
22+ uses : ./.github/workflows/tpu_tests.yml
23+
24+ - name : Remove Label
25+ uses : actions/github-script@v8
1926 with :
2027 script : |
2128 github.rest.issues.removeLabel({
You can’t perform that action at this time.
0 commit comments