diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 45dc90220..da900bd8b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} @@ -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: diff --git a/docs/development/testing.md b/docs/development/testing.md index a81d9adb0..21e434b1a 100644 --- a/docs/development/testing.md +++ b/docs/development/testing.md @@ -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.