File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Unittests [Optional]
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ workflow_run :
6
+ workflows : [Unittests]
7
+ types : [requested]
8
+
9
+ # Cancel in-progress runs for the current workflow if not on the main branch
10
+ # (as it marks the unittests as failed).
11
+ # Conditionals to concurrent are based on the solution proposed in this link:
12
+ # https://github.community/t/concurrency-cancel-in-progress-but-not-when-ref-is-master/194707
13
+ concurrency :
14
+ group : ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
15
+ # Cancel only PR intermediate builds.
16
+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
Original file line number Diff line number Diff line change 21
21
- cron : ' 0 2 * * *'
22
22
23
23
# Cancel in-progress runs for the current workflow if not on the main branch
24
- # (as it mark the unittests as failed).
24
+ # (as it marks the unittests as failed).
25
25
# Conditionals to concurrent are based on the solution proposed in this link:
26
26
# https://github.community/t/concurrency-cancel-in-progress-but-not-when-ref-is-master/194707
27
27
concurrency :
28
28
group : ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
29
- # Cancel only PR intermediate builds
29
+ # Cancel only PR intermediate builds.
30
30
cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
31
31
32
32
env :
79
79
# Do not cancel in-progress jobs if any matrix job fails.
80
80
fail-fast : false
81
81
matrix :
82
- tf-version : [' tensorflow' ]
82
+ tf-version : [tensorflow]
83
83
# Can't reference env variables in matrix
84
84
num-shards : ${{ fromJson(needs.shards-job.outputs.num-shards) }}
85
85
shard-id : ${{ fromJson(needs.shards-job.outputs.shard-ids) }}
You can’t perform that action at this time.
0 commit comments