From 169aacfab65096fe4a609732a5ad15be77c63d4f Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Tue, 14 Jan 2025 19:26:39 -0500 Subject: [PATCH] CI: only build the oldest and newest Pythons on PRs It seems a bit excessive and unnecessary to build for all Pythons on every PR. Still build for all Pythons on commits. --- .github/workflows/ci-build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 65cdda48..ec610d6b 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -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 }}