Skip to content

Commit

Permalink
Fix for bad git path in GHA macos instances. (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo authored Sep 19, 2024
1 parent c9a721c commit 0f32091
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
matrix:
os: [ubuntu-latest]
version: [py310, py311]
gitpath-prepend: [""]
include:
- os: ubuntu-latest
platform: linux
Expand All @@ -43,6 +44,9 @@ jobs:
- os: macos-latest
version: py311
platform: osx
# On macos, the up-to-date git may not be first on the path
# N.B. setting includes a final ":", to simplify the path setting command
gitpath-prepend: "/opt/homebrew/bin:"
steps:
- name: "Checkout"
uses: actions/checkout@v4
Expand Down Expand Up @@ -108,4 +112,7 @@ jobs:
env:
POST_COMMAND: ${{ matrix.post-command }}
run: |
export PATH=${{ matrix.gitpath-prepend }}$PATH
which git
git --version
tox -e ${{ matrix.version }}-${{ matrix.platform }}-test -- ${{ matrix.posargs }}

0 comments on commit 0f32091

Please sign in to comment.