-
Notifications
You must be signed in to change notification settings - Fork 24
48 lines (41 loc) · 1.23 KB
/
test.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
46
47
48
name: Test Refl1D
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
test_and_build:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- { os: ubuntu-latest, py: 3.9 }
- { os: ubuntu-latest, py: "3.10" }
- { os: ubuntu-latest, py: "3.11", doc: 1, whl: 1 }
- { os: ubuntu-latest, py: "3.12" }
- { os: windows-latest, py: "3.12", whl: 1 }
- { os: macos-latest, py: "3.12" }
# pure python wheels
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.config.py }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.config.py }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev,webview] build setuptools wheel
python -m build
- name: Run tests
run: |
pytest -v
python check_examples.py --chisq
env:
MPLBACKEND: agg
- name: Check that the docs build (linux only)
if: matrix.config.doc == 1
run: |
make -j 4 -C doc SPHINXOPTS="-W --keep-going" html