diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index eca9ed3..c22b2e6 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -1,6 +1,9 @@ name: Run tests -on: [push, pull_request] +on: + pull_request: + push: + branches: [master] jobs: test: @@ -8,8 +11,16 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + include: + # macOS runners cost 10x Linux minutes - only test the oldest + # and newest supported Python there to catch platform-specific + # issues without running the full matrix twice. + - os: macos-latest + python-version: "3.8" + - os: macos-latest + python-version: "3.14" steps: - uses: actions/checkout@v6