From 24941b15ffe647052733fd9d0b1aebdea143a4cc Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Wed, 14 Aug 2024 10:51:33 +0300 Subject: [PATCH] CI: fix a regression due to changes in pip --- .github/workflows/build.yml | 4 ++++ .github/workflows/publish.yml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a620693..43aec36 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,6 +44,10 @@ jobs: with: python-version: '3.12' + - name: Allow system-wide pip installs on macOS + if: runner.os == 'macOS' + run: echo 'break-system-packages = true' > ~/.pip/pip.conf + - name: Install cibuildwheel run: python -m pip install --upgrade cibuildwheel diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fa0dfdf..b77092b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,10 @@ jobs: with: python-version: '3.12' + - name: Allow system-wide pip installs on macOS + if: runner.os == 'macOS' + run: echo 'break-system-packages = true' > ~/.pip/pip.conf + - name: Install dependencies run: | python -m pip install --upgrade pip @@ -66,6 +70,10 @@ jobs: with: python-version: '3.12' + - name: Allow system-wide pip installs on macOS + if: runner.os == 'macOS' + run: echo 'break-system-packages = true' > ~/.pip/pip.conf + - name: Download test data run: | python -m pip install pytest requests