Skip to content

Test in Docker with Alpine Linux on CI #1826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Feb 16, 2024
Prev Previous commit
Next Next commit
Bring back venv
The "error: externally-managed-environment" stoppage occurs even
when the Alpine Linux python command is run by a non-root user.
  • Loading branch information
EliahKagan committed Feb 15, 2024
commit b32932f63e013413fb5150d881b67707ee650f22
8 changes: 8 additions & 0 deletions .github/workflows/alpine-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,24 @@ jobs:
# and cause subsequent tests to fail
cat test/fixtures/.gitconfig >> ~/.gitconfig

- name: Create Python virtual environment
run: |
python -m venv .venv

- name: Update PyPA packages
run: |
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
. .venv/bin/activate
python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel

- name: Install project and test dependencies
run: |
. .venv/bin/activate
pip install ".[test]"

- name: Show version and platform information
run: |
. .venv/bin/activate
uname -a
command -v git python
git version
Expand All @@ -75,4 +82,5 @@ jobs:

- name: Test with pytest
run: |
. .venv/bin/activate
pytest --color=yes -p no:sugar --instafail -vv