Skip to content

Commit 07d6c83

Browse files
authored
Update GitHub Actions in build CI to latest versions & use pip cache (#915)
1 parent c6a90ac commit 07d6c83

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/ci-build-checks.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,25 @@ on:
2424
types:
2525
- checks_requested
2626

27+
concurrency:
28+
cancel-in-progress: true
29+
group: ${{github.workflow}}-${{github.event.pull_request.number||github.ref}}
30+
2731
permissions: read-all
2832

2933
jobs:
3034
wheel-build:
3135
name: Wheel test
3236
runs-on: ubuntu-22.04
37+
timeout-minutes: 60
3338

3439
steps:
35-
- uses: actions/checkout@544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9 # v1
36-
- uses: actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1
40+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
41+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5
3742
with:
3843
python-version: '3.10'
3944
architecture: 'x64'
45+
cache: pip
4046
- name: Install Bazel on CI
4147
run: ./scripts/ci_install.sh
4248
- name: Configure CI TF
@@ -49,13 +55,15 @@ jobs:
4955
bazel-tests:
5056
name: Library tests
5157
runs-on: ubuntu-22.04
58+
timeout-minutes: 60
5259

5360
steps:
54-
- uses: actions/checkout@544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9 # v1
55-
- uses: actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1
61+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
62+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5
5663
with:
5764
python-version: '3.10'
5865
architecture: 'x64'
66+
cache: pip
5967
- name: Install Bazel on CI
6068
run: ./scripts/ci_install.sh
6169
- name: Configure CI TF
@@ -89,13 +97,15 @@ jobs:
8997
name: Tutorial tests
9098
runs-on: ubuntu-22.04
9199
needs: wheel-build
100+
timeout-minutes: 60
92101

93102
steps:
94-
- uses: actions/checkout@544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9 # v1
95-
- uses: actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1
103+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
104+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5
96105
with:
97106
python-version: '3.10'
98107
architecture: 'x64'
108+
cache: pip
99109
- name: Install notebook dependencies
100110
run: pip install --upgrade pip seaborn==0.10.0
101111
- name: Install Bazel on CI

0 commit comments

Comments
 (0)