diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 7fff205cec..6ddf89750d 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -44,7 +44,7 @@ jobs: strategy: matrix: os: ['macos-13', 'macos-14', 'ubuntu-22.04', 'ubuntu-22.04-arm'] - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ${{ github.event_name == 'pull_request' && fromJson('["3.9", "3.13"]') || fromJson('["3.9", "3.10", "3.11", "3.12", "3.13"]') }} include: - python-version: '3.9' python-org-version: '3.9.13' @@ -72,16 +72,6 @@ jobs: - os: 'ubuntu-22.04-arm' base_image: 'docker.io/neuronsimulator/neuron_wheel:manylinux_2_28_aarch64' - # We only want to run Python min and max versions on PRs (but all the rest - # when doing a release or nightly) - exclude: - - python-version: '3.10' - if: github.event_name == 'pull_request' - - python-version: '3.11' - if: github.event_name == 'pull_request' - - python-version: '3.12' - if: github.event_name == 'pull_request' - steps: - name: Check out code if: github.event_name != 'workflow_dispatch'