dev(ci): add --break-system-packages to pip install

Partially resolves #8025

Only use break system install on macos

Try extra brew install

Brew install on mac, pip install on rest

Try using windows-2019 instead of latest (2022)

Back to original windows
This commit is contained in:
Cornelius Roemer 2024-08-24 18:10:29 +02:00 committed by Philip Peterson
parent bd1adbf2d3
commit ea63068ca2
No known key found for this signature in database
GPG key ID: 354311183FC6519B

View file

@ -28,7 +28,12 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
- name: Fix node-gyp and Python
run: python3 -m pip install packaging setuptools --break-system-packages || python3 -m pip install packaging setuptools
run: |
if [[ "$RUNNER_OS" == "macOS" ]]; then
brew install python-setuptools python-packaging
else
python3 -m pip install $EXTRA_ARGS packaging setuptools
fi
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT