File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 22
33on :
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
1919jobs :
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
Original file line number Diff line number Diff line change 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 ]
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
You can’t perform that action at this time.
0 commit comments