Skip to content

Commit

Permalink
CI: Work around macOS error
Browse files Browse the repository at this point in the history
Work around the following error:
```
error: externally-managed-environment
```
  • Loading branch information
k-takata committed Aug 5, 2024
1 parent 969a97c commit f62ec51
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ jobs:
brew install lua
- name: Setup pip
run: |
sudo pip3 install -U pip
if [ "${{ matrix.os }}" = "macos-latest" ]; then
sudo pip3 install -U pip --break-system-packages
else
sudo pip3 install -U pip
fi
- name: Get pip cache
id: pip-cache
run: |
Expand All @@ -61,7 +65,11 @@ jobs:
${{ runner.os }}-pip-
- name: Setup cached item
run: |
pip3 install --user -r requirements.txt
if [ "${{ matrix.os }}" = "macos-latest" ]; then
pip3 install --user -r requirements.txt --break-system-packages
else
pip3 install --user -r requirements.txt
fi
- name: Setup Vim
id: 'vim'
uses: thinca/action-setup-vim@v1
Expand Down

0 comments on commit f62ec51

Please sign in to comment.