From ac7551cfe3398c1128a6825a8df9796e31689943 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Sun, 26 Oct 2025 21:25:53 +0100 Subject: [PATCH 1/3] CI: use the right Python in the Homebrew jobs Update the path added to the $PATH to reflect the installation path change in recent Homebrew releases. Check that the intended Python is actually being used. --- .github/workflows/tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d2209beb9..a306dacfa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -280,7 +280,10 @@ jobs: - name: Install Homebrew Python run: | brew install --overwrite python@${{ matrix.python }} - echo /usr/local/opt/python@${{ matrix.python }}/libexec/bin/ >> $GITHUB_PATH + echo /opt/homebrew/opt/python@${{ matrix.python }}/libexec/bin/ >> $GITHUB_PATH + + - name: Check Python version + run: python --version | grep ${{ matrix.python }} - name: Install Ninja run: brew install ninja From 85db3065ee7144f117fe0d18e2910540a236c008 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Sun, 26 Oct 2025 21:39:51 +0100 Subject: [PATCH 2/3] CI: there is not need to update pip on Homebrew anymore --- .github/workflows/tests.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a306dacfa..c952c8a8e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -288,10 +288,6 @@ jobs: - name: Install Ninja run: brew install ninja - - name: Update pip - # pip >= 23.0 fixes https://github.com/pypa/pip/issues/11539 - run: python -m pip install --upgrade "pip >= 23.0" - - name: Install Meson run: python -m pip install "meson ${{ matrix.meson }}" if: ${{ matrix.meson }} From 1b61d884d5c06fa1dc84721e1ccde5bcf31bfd02 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Sun, 26 Oct 2025 21:38:42 +0100 Subject: [PATCH 3/3] CI: allow pip to install packages system-wide on Homebrew --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c952c8a8e..5e8d1f830 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -281,6 +281,7 @@ jobs: run: | brew install --overwrite python@${{ matrix.python }} echo /opt/homebrew/opt/python@${{ matrix.python }}/libexec/bin/ >> $GITHUB_PATH + python${{ matrix.python }} -m pip config set global.break-system-packages true - name: Check Python version run: python --version | grep ${{ matrix.python }}