Skip to content

Commit a45d0b0

Browse files
committed
Use venv on Alpine Linux
To overcome "This environment is externally managed" blocker.
1 parent cefb53e commit a45d0b0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/alpine-test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,24 @@ jobs:
3838
# and cause subsequent tests to fail
3939
cat test/fixtures/.gitconfig >> ~/.gitconfig
4040
41+
- name: Create Python virtual environment
42+
run: |
43+
python -m venv .venv
44+
4145
- name: Update PyPA packages
4246
run: |
4347
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
48+
. .venv/bin/activate
4449
python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel
4550
4651
- name: Install project and test dependencies
4752
run: |
53+
. .venv/bin/activate
4854
pip install ".[test]"
4955
5056
- name: Show version and platform information
5157
run: |
58+
. .venv/bin/activate
5259
uname -a
5360
command -v git python
5461
git version
@@ -57,4 +64,5 @@ jobs:
5764
5865
- name: Test with pytest
5966
run: |
67+
. .venv/bin/activate
6068
pytest --color=yes -p no:sugar --instafail -vv

0 commit comments

Comments
 (0)