From 2f1f2c449f501e2323938c8195255927aeb52cb3 Mon Sep 17 00:00:00 2001 From: Jay Chung Date: Thu, 25 Apr 2024 12:23:18 +0800 Subject: [PATCH] ci: update setup-python unsupported version (#143) python 38 and 39 are not supported on macos-latest anymore, see more details at https://github.com/actions/setup-python/issues/696#issuecomment-1637587760 --- .github/workflows/ci.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3b965f8..6a0d58a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -79,14 +79,25 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] # FIXME: temp change os to ubuntu-20.04 to fix python can not found error https://github.com/actions/setup-python/issues/162#issuecomment-1325307787 os: [ubuntu-20.04, macOS-latest, windows-latest] - # Skip because dependence [py4j](https://pypi.org/project/py4j/) not work on those environments exclude: + # Skip because dependence [py4j](https://pypi.org/project/py4j/) not work on those environments - os: windows-latest python-version: '3.10' - os: windows-latest python-version: 3.11 - os: windows-latest python-version: 3.12 + # Python 3.8 and 3.9 is on macos-13 but not macos-latest (macos-14-arm64) + # https://github.com/actions/setup-python/issues/696#issuecomment-1637587760 + - os: macos-latest + python-version: 3.9 + - os: macos-latest + python-version: 3.8 + include: + - os: macos-13 + python-version: 3.9 + - os: macos-13 + python-version: 3.8 steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }}