From 6d863e0c8810d8922933220623a8176d9137b055 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Mon, 23 Sep 2024 17:20:40 +0200 Subject: [PATCH] Update tests.yml to run python 3.7 tests on legacy version macOS Thanks to https://github.com/actions/runner-images/issues/9770#issuecomment-2085623315 --- .github/workflows/tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 221e2b7..c28ab35 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,12 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] python-version: ["3.7", "3.10"] + 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 steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -36,4 +42,4 @@ jobs: - name: Run tests run: | cd tests - pytest \ No newline at end of file + pytest