Skip to content

Commit a11a7ed

Browse files
committed
Run a combination of python versions and operating systems
1 parent 8312b9a commit a11a7ed

3 files changed

Lines changed: 79 additions & 91 deletions

File tree

.github/workflows/unit-test-os-coverage.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/unit-test-python-coverage.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/unit-tests.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Unit tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
# Run workflow when PR is changed, or when changed from draft to ready
9+
types: [opened, synchronize, reopened, ready_for_review]
10+
branches:
11+
- '**'
12+
13+
jobs:
14+
15+
run-unit-tests:
16+
name: Run unit tests
17+
runs-on: ${{ matrix.os }}
18+
19+
# Skip job if it's a draft PR
20+
if: github.event.pull_request.draft == false
21+
22+
strategy:
23+
matrix:
24+
include:
25+
- py: "3.9"
26+
os: ubuntu-22.04
27+
extras: ""
28+
- py: "3.10"
29+
os: ubuntu-24.04
30+
extras: ".[stan]"
31+
- py: "3.10"
32+
os: windows-11-arm
33+
extras: ""
34+
- py: "3.11"
35+
os: ubuntu-24.04-arm
36+
extras: ".[stan]"
37+
- py: "3.11"
38+
os: macos-15
39+
extras: ""
40+
- py: "3.12"
41+
os: ubuntu-24.04
42+
extras: ".[stan]"
43+
- py: "3.12"
44+
os: windows-2025
45+
extras: ""
46+
- py: "3.13"
47+
os: ubuntu-24.04-arm
48+
extras: ".[stan]"
49+
extras: ""
50+
- py: "3.13"
51+
os: macos-26-intel
52+
extras: ""
53+
- py: "3.14"
54+
os: ubuntu-24.04
55+
extras: ".[stan]"
56+
- py: "3.14"
57+
os: macos-26
58+
extras: ""
59+
- py: "3.15"
60+
os: ubuntu-24.04-arm
61+
extras: ""
62+
63+
steps:
64+
- uses: actions/checkout@v6
65+
66+
- name: Set up Python ${{ matrix.py }}
67+
uses: actions/setup-python@v6
68+
with:
69+
python-version: ${{ matrix.py }}
70+
71+
- name: install pints
72+
run: |
73+
python --version
74+
python -m pip install --upgrade pip setuptools wheel
75+
python -m pip install . ${{ matrix.extras }}
76+
77+
- name: run unit tests
78+
run: |
79+
python run-tests.py --unit

0 commit comments

Comments
 (0)