Skip to content
Merged
Changes from all 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
34 changes: 30 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,30 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11", "3.12", "3.13", "3.14"]
# PRs: every OS on the newest Python, plus all versions on macOS (the fastest runner).
# Pushes to main and manual runs: the full OS x Python matrix.
include: >-
${{ fromJSON(github.event_name == 'pull_request' && '[
{"os": "ubuntu-latest", "python-version": "3.14"},
{"os": "windows-latest", "python-version": "3.14"},
{"os": "macos-latest", "python-version": "3.11"},
{"os": "macos-latest", "python-version": "3.12"},
{"os": "macos-latest", "python-version": "3.13"},
{"os": "macos-latest", "python-version": "3.14"}
]' || '[
{"os": "ubuntu-latest", "python-version": "3.11"},
{"os": "ubuntu-latest", "python-version": "3.12"},
{"os": "ubuntu-latest", "python-version": "3.13"},
{"os": "ubuntu-latest", "python-version": "3.14"},
{"os": "windows-latest", "python-version": "3.11"},
{"os": "windows-latest", "python-version": "3.12"},
{"os": "windows-latest", "python-version": "3.13"},
{"os": "windows-latest", "python-version": "3.14"},
{"os": "macos-latest", "python-version": "3.11"},
{"os": "macos-latest", "python-version": "3.12"},
{"os": "macos-latest", "python-version": "3.13"},
{"os": "macos-latest", "python-version": "3.14"}
]') }}

steps:
- name: Checkout repository
Expand All @@ -42,10 +64,14 @@ jobs:
run: uv sync --extra test --extra symbolic

- name: Run tests
run: uv run pytest --cov-report=xml
env:
COVERAGE_CORE: sysmon
run: >-
uv run pytest
${{ (matrix.os == 'macos-latest' && matrix.python-version == '3.14') && '--cov-report=xml' || '--no-cov' }}

- name: Upload coverage
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
if: matrix.os == 'macos-latest' && matrix.python-version == '3.14'
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
Loading