-
Notifications
You must be signed in to change notification settings - Fork 34
79 lines (70 loc) · 1.84 KB
/
unit-tests.yml
File metadata and controls
79 lines (70 loc) · 1.84 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Unit tests
on:
push:
branches:
- main
pull_request:
# Run workflow when PR is changed, or when changed from draft to ready
types: [opened, synchronize, reopened, ready_for_review]
branches:
- '**'
jobs:
run-unit-tests:
name: Run unit tests
runs-on: ${{ matrix.os }}
# Skip job if it's a draft PR
if: github.event.pull_request.draft == false
strategy:
matrix:
include:
- py: "3.9"
os: ubuntu-22.04
extras: ""
- py: "3.10"
os: ubuntu-24.04
extras: ".[stan]"
- py: "3.10"
os: windows-11-arm
extras: ""
- py: "3.11"
os: ubuntu-24.04-arm
extras: ".[stan]"
- py: "3.11"
os: macos-15
extras: ""
- py: "3.12"
os: ubuntu-24.04
extras: ".[stan]"
- py: "3.12"
os: windows-2025
extras: ""
- py: "3.13"
os: ubuntu-24.04-arm
extras: ".[stan]"
- py: "3.13"
os: macos-26-intel
extras: ""
- py: "3.14"
os: ubuntu-24.04
extras: ".[stan]"
- py: "3.14"
os: macos-26
extras: ""
- py: "3.15"
os: ubuntu-24.04-arm
extras: ""
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.py }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.py }}
allow-prereleases: true
- name: install pints
run: |
python --version
python -m pip install --upgrade pip setuptools wheel
python -m pip install . ${{ matrix.extras }}
- name: run unit tests
run: |
python run-tests.py --unit