Skip to content

Commit

Permalink
Use venv on Alpine Linux
Browse files Browse the repository at this point in the history
To overcome "This environment is externally managed" blocker.
  • Loading branch information
EliahKagan committed Feb 15, 2024
1 parent cefb53e commit a45d0b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/alpine-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,24 @@ jobs:
# and cause subsequent tests to fail
cat test/fixtures/.gitconfig >> ~/.gitconfig
- name: Create Python virtual environment
run: |
python -m venv .venv
- name: Update PyPA packages
run: |
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
. .venv/bin/activate
python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel
- name: Install project and test dependencies
run: |
. .venv/bin/activate
pip install ".[test]"
- name: Show version and platform information
run: |
. .venv/bin/activate
uname -a
command -v git python
git version
Expand All @@ -57,4 +64,5 @@ jobs:
- name: Test with pytest
run: |
. .venv/bin/activate
pytest --color=yes -p no:sugar --instafail -vv

0 comments on commit a45d0b0

Please sign in to comment.