From a609cf473099a0041f5eaf2e7406ff2174590eaa Mon Sep 17 00:00:00 2001 From: mhostetter Date: Thu, 6 Jun 2024 20:31:15 -0400 Subject: [PATCH] Fix CI for Python 3.7 on macOS --- .github/workflows/test.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fc1795e9d..8391586a8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -82,6 +82,13 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12] + # https://github.com/actions/runner-images/issues/9770#issuecomment-2085623315 + exclude: # Python < v3.8 does not support Apple Silicon ARM64 + - python-version: "3.7" + os: macos-latest + include: # So run those legacy versions on Intel CPUs + - python-version: "3.7" + os: macos-13 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -135,6 +142,13 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12] + # https://github.com/actions/runner-images/issues/9770#issuecomment-2085623315 + exclude: # Python < v3.8 does not support Apple Silicon ARM64 + - python-version: "3.7" + os: macos-latest + include: # So run those legacy versions on Intel CPUs + - python-version: "3.7" + os: macos-13 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3