Skip to content

Commit

Permalink
tidier kluge
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed Sep 19, 2024
1 parent bc926a4 commit 6e6e1af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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,9 +112,7 @@ jobs:
env:
POST_COMMAND: ${{ matrix.post-command }}
run: |
echo $PATH
git --version
export PATH=/opt/homebrew/bin:$PATH
export PATH=${{ gitpath_prepend }}$PATH
which git
git --version
tox -e ${{ matrix.version }}-${{ matrix.platform }}-test -- ${{ matrix.posargs }}

0 comments on commit 6e6e1af

Please sign in to comment.