Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
pull_request:
workflow_dispatch:
schedule:
- cron: "17 4 * * 1" # weekly: the full matrix, including every macOS Python version
- cron: "17 4 * * 1" # weekly: the same matrix as a push, with one macOS Python version

concurrency:
group: tests-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -102,10 +102,10 @@ jobs:
if: steps.pytest.outcome == 'failure'
run: exit 1

pytest-macos-weekly:
# The macOS runners are the scarce ones: a pull request runs one macOS Python version (pytest-extra, python 3.12 above)
# and the core coverage job; the other macOS versions run here, in the weekly scheduled run or on demand.
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
pytest-macos-full:
# The macOS runners are the scarce ones: push, pull request and the weekly run use one macOS Python version
# (pytest-extra, python 3.12 above) and the core coverage job; the other macOS versions run here, on demand only.
if: ${{ github.event_name == 'workflow_dispatch' }}
name: pytest-extra (macos-latest, python ${{ matrix.python }})
timeout-minutes: 30
strategy:
Expand Down
4 changes: 3 additions & 1 deletion docs/development/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ Whether a threshold is enforced as a failing check in CI is not configured in th
## Platforms and versions in CI

`.github/workflows/tests.yml` runs on Ubuntu, Windows and macOS. The matrix covers Python 3.11, 3.12, 3.13, 3.14
and 3.15, with 3.11, 3.12 and 3.15 on all three systems and 3.13 and 3.14 on Ubuntu. A separate `core-coverage` job runs
and 3.15, with 3.11, 3.12 and 3.15 on Windows and 3.11 to 3.15 on Ubuntu.
macOS runs 3.12 on push, pull request and the weekly schedule; 3.11 and 3.15 on macOS run only on a manual
(`workflow_dispatch`) run. A separate `core-coverage` job runs
`tests/core` on all three systems with `--cov=protocolith.core --cov-branch --cov-fail-under=100`, so the 100% figure is
enforced in CI; each platform-specific lock module is excluded on the other platforms by its own pragma.

Expand Down
Loading