From a0713c449e8ac37863b476457e39480c84ab9240 Mon Sep 17 00:00:00 2001 From: Ray Luo Date: Thu, 2 May 2024 22:57:32 -0700 Subject: [PATCH] Workaround for Github's latest macos runner https://github.com/actions/runner-images/issues/9770#issuecomment-2085623315 --- .github/workflows/python-package.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index deb2bb2..28ad759 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -19,10 +19,15 @@ jobs: matrix: python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12] os: [ubuntu-latest, windows-latest, macos-latest] - include: - # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-environment-variables-in-a-matrix - - python-version: 3.7 + exclude: # https://github.com/actions/runner-images/issues/9770#issuecomment-2085623315 + # Apple Silicon ARM64 does not support Python < v3.8 + - python-version: "3.7" + os: macos-latest + include: # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-environment-variables-in-a-matrix + - # Run those legacy versions on macos13 runner which uses Intel CPUs + python-version: 3.7 toxenv: "py37" + os: macos-13 - python-version: 3.8 toxenv: "py38" - python-version: 3.9