Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix pipx permissions on macOS arm64 in CI #2

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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