-
Notifications
You must be signed in to change notification settings - Fork 24
54 lines (45 loc) · 1.33 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
49
50
51
52
53
54
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" }
- { os: ubuntu-latest, py: "3.12", doc: 1, whl: 1 }
- { os: windows-latest, py: "3.12", whl: 1 }
- { os: macos-latest, py: "3.12" }
# pure python wheels
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python ${{ matrix.config.py }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.config.py }}
- name: Install the project
run: |
uv sync --extra dev --extra webview --dev
uv build
- name: Run tests
run: |
uv run python -m pytest -v
uv run python check_examples.py --chisq
shell: bash
env:
MPLBACKEND: agg
- name: Check that the docs build (linux only)
if: matrix.config.doc == 1
run: |
sudo apt-get install -y pandoc
source .venv/bin/activate
make -j 4 -C doc SPHINXOPTS="-W --keep-going" html