Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb32932f

Browse files
committed
Bring back venv
The "error: externally-managed-environment" stoppage occurs evenwhen the Alpine Linux python command is run by a non-root user.
1 parent20780cb commitb32932f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎.github/workflows/alpine-test.yml

Lines changed: 8 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp