ci: run full Python-version matrix on push, current-only on PRs (#40722)

Co-authored-by: Claude Code <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-06-04 12:17:29 -07:00
committed by GitHub
parent 6f97d9817e
commit 80a3df3550
5 changed files with 13 additions and 5 deletions

View File

@@ -43,7 +43,9 @@ jobs:
id-token: write
strategy:
matrix:
python-version: ["previous", "current", "next"]
# Full version spread on push (master/release) + nightly; current only
# on PRs to cut runner cost (cross-version breaks are caught at merge).
python-version: ${{ github.event_name == 'pull_request' && fromJSON('["current"]') || fromJSON('["previous", "current", "next"]') }}
env:
PYTHONPATH: ${{ github.workspace }}
steps: