Skip to content

Commit

Permalink
CI: only build the oldest and newest Pythons on PRs
Browse files Browse the repository at this point in the history
It seems a bit excessive and unnecessary to build for all Pythons on
every PR.  Still build for all Pythons on commits.
  • Loading branch information
swt2c committed Jan 15, 2025
1 parent 385bc6a commit 169aacf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ jobs:
architecture: x86
- os: macos-13
architecture: x86
# Only build oldest and newest Pythons on PRs
- python-version: ${{ github.event_name == 'pull_request' && '3.10' }}
- python-version: ${{ github.event_name == 'pull_request' && '3.11' }}
- python-version: ${{ github.event_name == 'pull_request' && '3.12' }}

env:
VERSION: ${{ needs.build-source-dist.outputs.VERSION }}
Expand Down

0 comments on commit 169aacf

Please sign in to comment.