|
24 | 24 | types: |
25 | 25 | - checks_requested |
26 | 26 |
|
| 27 | +concurrency: |
| 28 | + cancel-in-progress: true |
| 29 | + group: ${{github.workflow}}-${{github.event.pull_request.number||github.ref}} |
| 30 | + |
27 | 31 | permissions: read-all |
28 | 32 |
|
29 | 33 | jobs: |
30 | 34 | wheel-build: |
31 | 35 | name: Wheel test |
32 | 36 | runs-on: ubuntu-22.04 |
| 37 | + timeout-minutes: 60 |
33 | 38 |
|
34 | 39 | 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 |
37 | 42 | with: |
38 | 43 | python-version: '3.10' |
39 | 44 | architecture: 'x64' |
| 45 | + cache: pip |
40 | 46 | - name: Install Bazel on CI |
41 | 47 | run: ./scripts/ci_install.sh |
42 | | - - name: Configure CI TF |
43 | | - run: echo "Y\n" | ./configure.sh |
44 | 48 | - name: Build Wheel Test |
45 | 49 | run: ./scripts/build_pip_package_test.sh |
46 | 50 | - name: Test Wheel |
47 | 51 | run: ./scripts/run_example.sh |
48 | 52 |
|
49 | 53 | bazel-tests: |
50 | 54 | name: Library tests |
51 | | - runs-on: ubuntu-22.04 |
| 55 | + runs-on: linux-x86-n2-32 |
| 56 | + container: |
| 57 | + image: us-docker.pkg.dev/ml-oss-artifacts-published/ml-public-container/ml-build:latest |
| 58 | + timeout-minutes: 60 |
52 | 59 |
|
53 | 60 | steps: |
54 | | - - uses: actions/checkout@544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9 # v1 |
55 | | - - uses: actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1 |
| 61 | + - name: Adjust the ml-build runner to our needs |
| 62 | + run: | |
| 63 | + # lsb-release (needed by setup-python) is missing in ml-build runners |
| 64 | + sudo apt-get update && sudo apt-get install -y lsb-release |
| 65 | + # This file, though it's empty, hangs the Bazel install step. |
| 66 | + rm -f /etc/bazel.bazelrc |
| 67 | + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 68 | + - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5 |
56 | 69 | with: |
57 | 70 | python-version: '3.10' |
58 | 71 | architecture: 'x64' |
| 72 | + cache: pip |
59 | 73 | - name: Install Bazel on CI |
60 | 74 | run: ./scripts/ci_install.sh |
61 | 75 | - name: Configure CI TF |
@@ -87,21 +101,28 @@ jobs: |
87 | 101 |
|
88 | 102 | tutorials-test: |
89 | 103 | name: Tutorial tests |
90 | | - runs-on: ubuntu-22.04 |
91 | | - needs: wheel-build |
| 104 | + runs-on: linux-x86-n2-32 |
| 105 | + container: |
| 106 | + image: us-docker.pkg.dev/ml-oss-artifacts-published/ml-public-container/ml-build:latest |
| 107 | + timeout-minutes: 60 |
92 | 108 |
|
93 | 109 | steps: |
94 | | - - uses: actions/checkout@544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9 # v1 |
95 | | - - uses: actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1 |
| 110 | + - name: Adjust the ml-build runner to our needs |
| 111 | + run: | |
| 112 | + # lsb-release (needed by setup-python) is missing in ml-build runners |
| 113 | + sudo apt-get update && sudo apt-get install -y lsb-release |
| 114 | + # This file, though it's empty, hangs the Bazel install step. |
| 115 | + rm -f /etc/bazel.bazelrc |
| 116 | + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 117 | + - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5 |
96 | 118 | with: |
97 | 119 | python-version: '3.10' |
98 | 120 | architecture: 'x64' |
| 121 | + cache: pip |
99 | 122 | - name: Install notebook dependencies |
100 | 123 | run: pip install --upgrade pip seaborn==0.10.0 |
101 | 124 | - name: Install Bazel on CI |
102 | 125 | run: ./scripts/ci_install.sh |
103 | | - - name: Configure CI TF |
104 | | - run: echo "Y\n" | ./configure.sh |
105 | 126 | - name: Build Wheel |
106 | 127 | run: ./scripts/build_pip_package_test.sh |
107 | 128 | - name: Test Notebooks |
|
0 commit comments