ci: test all 4 Python versions on PRs

Run 3.10, 3.11, 3.12, 3.13 on every PR — we need to catch
version-specific breakage before merge. Removes the configure
job since the matrix is now static. Still 16 jobs (4×4) vs 32.
This commit is contained in:
Matt Aitchison
2026-02-25 16:33:19 -06:00
parent 19b9b9da23
commit de8d28909c

View File

@@ -13,29 +13,14 @@ concurrency:
cancel-in-progress: true
jobs:
configure:
name: Configure matrix
runs-on: ubuntu-latest
outputs:
python-versions: ${{ steps.matrix.outputs.python-versions }}
steps:
- id: matrix
run: |
if [ "${{ github.event_name }}" = "push" ]; then
echo 'python-versions=["3.10","3.11","3.12","3.13"]' >> "$GITHUB_OUTPUT"
else
echo 'python-versions=["3.12","3.13"]' >> "$GITHUB_OUTPUT"
fi
tests:
name: tests (py${{ matrix.python-version }}, ${{ matrix.group }}/4)
needs: configure
name: tests (${{ matrix.python-version }}, ${{ matrix.group }}/4)
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: true
matrix:
python-version: ${{ fromJSON(needs.configure.outputs.python-versions) }}
python-version: ['3.10', '3.11', '3.12', '3.13']
group: [1, 2, 3, 4]
steps:
- name: Checkout code