Skip to content

Commit 191389b

Browse files
committed
add concurrency settings and remove condition that disables running on forks
1 parent 67d7d05 commit 191389b

File tree

6 files changed

+27
-9
lines changed

6 files changed

+27
-9
lines changed

.github/workflows/bazel_cpu_rbe.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: CI - Bazel CPU tests (RBE)
22

33
on:
4-
# pull_request:
5-
# branches:
6-
# - main
4+
pull_request:
5+
branches:
6+
- main
77
workflow_dispatch:
88
inputs:
99
halt-for-connection:
@@ -21,10 +21,13 @@ concurrency:
2121

2222
jobs:
2323
run_tests:
24-
if: github.event.repository.fork == false
24+
defaults:
25+
run:
26+
# Explicitly set the shell to bash to override the default Windows environment, i.e, cmd.
27+
shell: bash
2528
strategy:
2629
matrix:
27-
runner: ["windows-x86-n2-64"] #, "linux-x86-n2-16", "linux-arm64-t2a-16"]
30+
runner: ["windows-x86-n2-64", "linux-x86-n2-16", "linux-arm64-t2a-16"]
2831

2932
runs-on: ${{ matrix.runner }}
3033
container: ${{ (contains(matrix.runner, 'linux-x86') && 'us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/ml-build:latest') ||

.github/workflows/bazel_gpu_non_rbe.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
- 'yes'
1616
- 'no'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
build_artifacts:
2024
name: "Build the jaxlib and CUDA plugins using latest XLA"

.github/workflows/bazel_gpu_rbe.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: CI - Bazel GPU tests (RBE)
22

33
on:
4-
# pull_request:
5-
# branches:
6-
# - main
4+
pull_request:
5+
branches:
6+
- main
77
workflow_dispatch:
88
inputs:
99
halt-for-connection:
@@ -21,7 +21,6 @@ concurrency:
2121

2222
jobs:
2323
run_tests:
24-
if: github.event.repository.fork == false
2524
strategy:
2625
matrix:
2726
runner: ["linux-x86-n2-16"]

.github/workflows/pytest_cpu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
options:
1515
- 'yes'
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
build_jaxlib_artifact:
1923
name: "Build the jaxlib aritfact using latest XLA"

.github/workflows/pytest_gpu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
- 'yes'
1616
- 'no'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
build_artifacts:
2024
name: "Build the jaxlib and CUDA plugins using latest XLA"

.github/workflows/pytest_tpu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
- 'yes'
1616
- 'no'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
run_tpu_tests:
2024
strategy:

0 commit comments

Comments
 (0)