6060 fail-fast : false
6161 matrix :
6262 # Use Ubuntu 20.04 / Ubuntu 24.04 / macOS 13 x86_64 / macOS 14 arm64 + Python 3.10 to build SpiderMonkey
63- os : [ 'ubuntu-20.04', 'ubuntu-24.04', 'macos-13', 'macos-14' ] # macOS 14 runner exclusively runs on M1 hardwares
63+ os : [ 'ubuntu-20.04', 'ubuntu-24.04', 'macos-13', 'macos-14', 'pi' ] # macOS 14 runner exclusively runs on M1 hardwares
6464 # see https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available
6565 python_version : [ '3.10' ]
6666 runs-on : ${{ matrix.os }}
@@ -127,7 +127,7 @@ jobs:
127127 strategy :
128128 fail-fast : false
129129 matrix :
130- os : [ 'ubuntu-20.04', 'ubuntu-24.04', 'macos-12', 'macos-14', 'windows-2022' ]
130+ os : [ 'ubuntu-20.04', 'ubuntu-24.04', 'macos-12', 'macos-14', 'windows-2022', 'pi' ]
131131 python_version : [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
132132 exclude :
133133 # actions/setup-python: The version '3.8'/'3.9' with architecture 'arm64' was not found for macOS.
@@ -146,6 +146,9 @@ jobs:
146146 - uses : actions/setup-python@v5
147147 with :
148148 python-version : ${{ matrix.python_version }}
149+ - name : Remove old poetry cache
150+ run : rm -rf ~/.cache/pypoetry
151+ if : ${{ matrix.os == 'pi' }}
149152 - name : Setup Poetry
150153 uses : snok/install-poetry@v1
151154 with :
@@ -162,9 +165,11 @@ jobs:
162165 fi
163166 echo "Installing python deps"
164167 poetry self add "poetry-dynamic-versioning[plugin]"
165- poetry env use python3 # use the correct Python version we've set up
168+ poetry env use python$PYTHON_VERSION || poetry env use python3 # use the correct Python version we've set up
166169 poetry install --no-root --only=dev
167170 echo "Installed Dependencies"
171+ env :
172+ PYTHON_VERSION : ${{ matrix.python_version }}
168173 - name : Build Docs # only build docs once
169174 if : ${{ matrix.os == 'ubuntu-20.04' && matrix.python_version == '3.11' }}
170175 run : |
0 commit comments