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

Commit01e40a7

Browse files
committed
Do everything in the venv in the Alpine test
1 parentaffab8e commit01e40a7

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

‎.github/workflows/alpine-test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
steps:
1717
-name:Prepare Alpine Linux
1818
run:|
19-
apk add sudo git git-daemon python3 py3-pip
19+
apk add sudo git git-daemon python3 py3-pip py3-setuptools py3-virtualenv py3-wheel
2020
echo 'Defaults env_keep += "CI GITHUB_* RUNNER_*"' >/etc/sudoers.d/ci_env
2121
addgroup -g 127 docker
22-
adduser -D -u 1001 runner
22+
adduser -D -u 1001 runner # TODO: Check if this still works on GHA as intended.
2323
adduser runner docker
2424
shell:sh -exo pipefail {0}# Run this as root, not the "runner" user.
2525

@@ -50,17 +50,14 @@ jobs:
5050
. .venv/bin/activate
5151
printf '%s=%s\n' 'PATH' "$PATH" 'VIRTUAL_ENV' "$VIRTUAL_ENV" >>"$GITHUB_ENV"
5252
53-
-name:Update PyPA packages
54-
run:|
55-
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
56-
python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel
57-
5853
-name:Install project and test dependencies
5954
run:|
55+
. .venv/bin/activate
6056
pip install ".[test]"
6157
6258
-name:Show version and platform information
6359
run:|
60+
. .venv/bin/activate
6461
uname -a
6562
command -v git python
6663
git version
@@ -69,4 +66,5 @@ jobs:
6966
7067
-name:Test with pytest
7168
run:|
69+
. .venv/bin/activate
7270
pytest --color=yes -p no:sugar --instafail -vv

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp