Skip to content

Commit d8419da

Browse files
hbq1ChexDev
authored andcommitted
fix release workflow
PiperOrigin-RevId: 801894880
1 parent 9d33c06 commit d8419da

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: ci
22

33
on:
44
push:
5-
branches: ["master"]
5+
branches: ["main"]
66
pull_request:
7-
branches: ["master"]
7+
branches: ["main"]
88
schedule:
99
- cron: '30 2 * * *'
1010

@@ -18,7 +18,7 @@ concurrency:
1818

1919
jobs:
2020
build-and-test:
21-
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }} jax=${{ matrix.jax-version}}"
21+
name: "Pytest ${{ matrix.python-version }} on ${{ matrix.os }} jax=${{ matrix.jax-version}}"
2222
runs-on: "${{ matrix.os }}"
2323

2424
strategy:
@@ -32,12 +32,10 @@ jobs:
3232
jax-version: "nightly"
3333

3434
steps:
35-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
35+
- uses: actions/checkout@v5
36+
- uses: actions/setup-python@v5.3.0
3737
with:
3838
python-version: "${{ matrix.python-version }}"
39-
cache: "pip"
40-
cache-dependency-path: '**/requirements*.txt'
4139
- name: Run CI tests
4240
run: JAX_VERSION="${{ matrix.jax-version }}" bash test.sh
4341
shell: bash

.github/workflows/pypi-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
21-
pip install setuptools wheel twine
21+
pip install setuptools wheel twine build
2222
- name: Check consistency between the package version and release tag
2323
run: |
24+
pip install .
2425
RELEASE_VER=${GITHUB_REF#refs/*/}
2526
PACKAGE_VER="v`python -c 'import chex; print(chex.__version__)'`"
2627
if [ $RELEASE_VER != $PACKAGE_VER ]
@@ -29,6 +30,6 @@ jobs:
2930
fi
3031
- name: Build
3132
run: |
32-
python setup.py sdist bdist_wheel
33+
python -m build
3334
- name: Publish package distributions to PyPI
3435
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)