Skip to content

Commit 68d3d9d

Browse files
committed
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.
1 parent 09e18fc commit 68d3d9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,10 @@ jobs:
280280
- name: Install Homebrew Python
281281
run: |
282282
brew install --overwrite python@${{ matrix.python }}
283-
echo /usr/local/opt/python@${{ matrix.python }}/libexec/bin/ >> $GITHUB_PATH
283+
echo /opt/homebrew/opt/python@${{ matrix.python }}/libexec/bin/ >> $GITHUB_PATH
284+
285+
- name: Check Python version
286+
run: python --version | grep ${{ matrix.python }}
284287

285288
- name: Install Ninja
286289
run: brew install ninja

0 commit comments

Comments
 (0)