Skip to content

Commit b32932f

Browse files
committed
Bring back venv
The "error: externally-managed-environment" stoppage occurs even when the Alpine Linux python command is run by a non-root user.
1 parent 20780cb commit b32932f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: .github/workflows/alpine-test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,24 @@ jobs:
5656
# and cause subsequent tests to fail
5757
cat test/fixtures/.gitconfig >> ~/.gitconfig
5858
59+
- name: Create Python virtual environment
60+
run: |
61+
python -m venv .venv
62+
5963
- name: Update PyPA packages
6064
run: |
6165
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
66+
. .venv/bin/activate
6267
python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel
6368
6469
- name: Install project and test dependencies
6570
run: |
71+
. .venv/bin/activate
6672
pip install ".[test]"
6773
6874
- name: Show version and platform information
6975
run: |
76+
. .venv/bin/activate
7077
uname -a
7178
command -v git python
7279
git version
@@ -75,4 +82,5 @@ jobs:
7582
7683
- name: Test with pytest
7784
run: |
85+
. .venv/bin/activate
7886
pytest --color=yes -p no:sugar --instafail -vv

0 commit comments

Comments
 (0)