@@ -45,22 +45,26 @@ jobs:
4545 cache : pip
4646 - name : Install Bazel on CI
4747 run : ./scripts/ci_install.sh
48- - name : Configure CI TF
49- run : echo "Y\n" | ./configure.sh
5048 - name : Build Wheel Test
5149 run : ./scripts/build_pip_package_test.sh
5250 - name : Test Wheel
5351 run : ./scripts/run_example.sh
5452
5553 bazel-tests :
5654 name : Library tests
57- 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
5858 timeout-minutes : 60
5959
6060 steps :
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
6167 - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
62- - name : Remove some unnecessary software to free up disk space
63- run : sudo rm -rf /usr/share/dotnet /usr/local/lib/android &
6468 - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5
6569 with :
6670 python-version : ' 3.10'
@@ -97,11 +101,18 @@ jobs:
97101
98102 tutorials-test :
99103 name : Tutorial tests
100- runs-on : ubuntu-22.04
101- 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
102107 timeout-minutes : 60
103108
104109 steps :
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
105116 - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
106117 - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5
107118 with :
@@ -112,8 +123,6 @@ jobs:
112123 run : pip install --upgrade pip seaborn==0.10.0
113124 - name : Install Bazel on CI
114125 run : ./scripts/ci_install.sh
115- - name : Configure CI TF
116- run : echo "Y\n" | ./configure.sh
117126 - name : Build Wheel
118127 run : ./scripts/build_pip_package_test.sh
119128 - name : Test Notebooks
0 commit comments