-
Notifications
You must be signed in to change notification settings - Fork 34
Expand platforms that unit tests run on #1742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
a11a7ed
2a974db
e60aeb3
f839180
6f213ca
0439c8a
11efb3e
31b70ba
cc9644d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| 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: "" | ||
| - 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 | ||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.