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

Commita45d0b0

Browse files
committed
Use venv on Alpine Linux
To overcome "This environment is externally managed" blocker.
1 parentcefb53e commita45d0b0

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
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp