Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/workflows/unit-test-os-coverage.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/unit-test-python-coverage.yml

This file was deleted.

79 changes: 79 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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: ""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible to have it default to "" instead of respecifying every time?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can do this. Good thinking.

- 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]"
Copy link
Copy Markdown
Member

@MichaelClerx MichaelClerx Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we restrict the stan stuff to one version?
It only runs on 3.10, 3.11, and 3.12, I think

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'll restrict the .[stan] builds.

- 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
Loading