-
Notifications
You must be signed in to change notification settings - Fork 27
43 lines (40 loc) · 989 Bytes
/
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
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-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: |
if [ "${{ matrix.python-version }}" = "3.9" ]; then
pip install "jax==0.4.25" "jaxlib==0.4.25"
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 }}