Skip to content

Commit 24941b1

Browse files
committed
CI: fix a regression due to changes in pip
1 parent 2faf92f commit 24941b1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/build.yml

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ jobs:
4444
with:
4545
python-version: '3.12'
4646

47+
- name: Allow system-wide pip installs on macOS
48+
if: runner.os == 'macOS'
49+
run: echo 'break-system-packages = true' > ~/.pip/pip.conf
50+
4751
- name: Install cibuildwheel
4852
run: python -m pip install --upgrade cibuildwheel
4953

.github/workflows/publish.yml

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
with:
1515
python-version: '3.12'
1616

17+
- name: Allow system-wide pip installs on macOS
18+
if: runner.os == 'macOS'
19+
run: echo 'break-system-packages = true' > ~/.pip/pip.conf
20+
1721
- name: Install dependencies
1822
run: |
1923
python -m pip install --upgrade pip
@@ -66,6 +70,10 @@ jobs:
6670
with:
6771
python-version: '3.12'
6872

73+
- name: Allow system-wide pip installs on macOS
74+
if: runner.os == 'macOS'
75+
run: echo 'break-system-packages = true' > ~/.pip/pip.conf
76+
6977
- name: Download test data
7078
run: |
7179
python -m pip install pytest requests

0 commit comments

Comments
 (0)