Skip to content

Commit

Permalink
Fix pipx permissions on macOS arm64 in CI (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgiannuzzi authored Apr 3, 2024
1 parent e643baf commit c0b7718
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
check-latest: true
# pipx is not installed by default on macOS 14 arm64 runners
# pipx currently has permissions issues on macOS 14 arm64 runners
# see https://github.com/actions/runner-images/issues/9256
- name: Install pipx
- name: Fix pipx permissions
if: matrix.runner == 'macos-14'
run: |
pip install pipx
echo PATH="$(pipx environment -V PIPX_BIN_DIR):$PATH" >> $GITHUB_ENV
for dir in "$PIPX_HOME" "$PIPX_BIN_DIR"; do
if [ -n "$dir" ]; then
sudo mkdir -p "$dir"
sudo chown -R $(id -u) "$dir"
fi
done
- name: Test
run: pipx run hatch run dev:test
working-directory: bindings/python
Expand Down

0 comments on commit c0b7718

Please sign in to comment.