Skip to content

Commit bb3b2d3

Browse files
cantoniosGoogle-ML-Automation
authored andcommitted
Internal CI change.
PiperOrigin-RevId: 718511240
1 parent 82788b4 commit bb3b2d3

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

.github/workflows/build_and_test.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,15 @@ on:
99
pull_request:
1010

1111
jobs:
12-
build_and_test:
12+
build-and-test-cpu:
1313
runs-on: ubuntu-24.04
14-
strategy:
15-
matrix:
16-
python-version: ["3.10"]
17-
1814
steps:
1915
- uses: actions/checkout@v4
2016

21-
- name: Set up Python ${{ matrix.python-version }}
17+
- name: Set up Python 3.10
2218
uses: actions/setup-python@v5
2319
with:
24-
python-version: ${{ matrix.python-version }}
20+
python-version: '3.10'
2521
cache: 'pip'
2622

2723
- name: Display Python version
@@ -42,26 +38,26 @@ jobs:
4238
uses: actions/cache@v4
4339
with:
4440
path: "/home/runner/.cache/bazel"
45-
key: bazel-${{ matrix.python-version }}-${{ github.ref_name }}-${{ github.sha }}
41+
key: bazel-py3.10-${{ github.ref_name }}-${{ github.sha }}
4642
restore-keys: |
47-
bazel-${{ matrix.python-version }}-${{ github.ref_name }}
48-
bazel-${{ matrix.python-version }}-
43+
bazel-py3.10-${{ github.ref_name }}
44+
bazel-py3.10-
4945
bazel-
5046
5147
- if: github.event_name == 'pull_request'
5248
name: Mount bazel cache (pull-request)
5349
uses: actions/cache/restore@v4
5450
with:
5551
path: "/home/runner/.cache/bazel"
56-
key: bazel-${{ matrix.python-version }}-${{ github.base_ref }}-${{ github.event.pull_request.base.sha }}
52+
key: bazel-py3.10-${{ github.base_ref }}-${{ github.event.pull_request.base.sha }}
5753
restore-keys: |
58-
bazel-${{ matrix.python-version }}-${{ github.base_ref }}
59-
bazel-${{ matrix.python-version }}-
54+
bazel-py3.10-${{ github.base_ref }}
55+
bazel-py3.10-
6056
bazel-
6157
6258
- name: Build all targets
6359
run: |
64-
export HERMETIC_PYTHON_VERSION=${{ matrix.python-version }}
60+
export HERMETIC_PYTHON_VERSION=3.10
6561
bazel build //...
6662
6763
- name: Build pip wheel

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# jax_tpu_embedding
22

3-
[![Unittests](https://github.com/jax-ml/jax_tpu_embedding/actions/workflows/pytest_and_autopublish.yml/badge.svg)](https://github.com/jax-ml/jax_tpu_embedding/actions/workflows/pytest_and_autopublish.yml)
4-
[![PyPI version](https://badge.fury.io/py/jax_tpu_embedding.svg)](https://badge.fury.io/py/jax_tpu_embedding)
3+
[![Unittests](https://github.com/jax-ml/jax-tpu-embedding/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/jax-ml/jax-tpu-embedding/actions/workflows/build_and_test.yml)
4+
5+
Usage instructions coming soon!
56

67
*This is not an officially supported Google product.*

0 commit comments

Comments
 (0)