-
Notifications
You must be signed in to change notification settings - Fork 26
44 lines (41 loc) · 1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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.13"]
os: [ubuntu-latest]
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 install -U pip
if [ "${{ matrix.python-version }}" = "3.9" ]; then
pip install "jax==0.4.6" "jaxlib==0.4.6" "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 }}