-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 1009 Bytes
/
tests.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
45
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
name: ${{ matrix.os }}-${{ matrix.jax-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
jax-version: ["jax"]
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install fftw on ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install -y libfftw3-dev
- name: Install fftw on macos
if: ${{ matrix.os == 'macos-latest' }}
run: brew install fftw
- name: Build
run: |
python -m pip install -U pip
python -m pip install -U ${{ matrix.jax-version }}
python -m pip install -v .[test]
- name: Run tests
run: python -m pytest -v tests