[CI] Add old Jax tests #4199
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ci-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.12"] | |
os: [ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "${{ matrix.python-version }}" | |
architecture: 'x64' | |
- name: install | |
run: | | |
pip list | |
pip install -U pip | |
if [ "${{ matrix.python-version }}" = "3.9" ]; then | |
pip install "jax==0.4.1" "jaxlib==0.4.1" "numpy<2.0.0" | |
else | |
pip install jax jaxlib | |
fi | |
make install | |
- name: test | |
run: | | |
make install-dev | |
make test-with-codecov | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |