-
-
Notifications
You must be signed in to change notification settings - Fork 51
32 lines (30 loc) · 924 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
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: [ "3.9", "3.10", "3.11", "3.12" ]
backend: [ tensorflow, jax ]
include:
- backend: tensorflow
packages: tensorflow
- backend: jax
packages: tensorflow jax[cpu]
name: python-${{ matrix.python }}-${{ matrix.backend }}
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup python-${{ matrix.python }}-${{ matrix.backend }}
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python }}
- name: Install tools
run: |
python3 -m pip install pylint
python3 -m pip install mypy
python3 -m pip install ${{ matrix.packages }}
- name: Test
run: |
./tests/install_from_local_and_test.sh ${{ matrix.backend }}