CI: install into a venv (runner Python is PEP 668 managed)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,9 +21,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install + run tests
|
- name: Install + run tests
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --quiet --upgrade pip
|
# Runner image's system Python is PEP 668 externally-managed, so use a venv.
|
||||||
python3 -m pip install --quiet -r requirements.txt pytest
|
python3 -m venv .venv
|
||||||
python3 -m pytest -q
|
. .venv/bin/activate
|
||||||
|
pip install --quiet --upgrade pip
|
||||||
|
pip install --quiet -r requirements.txt pytest
|
||||||
|
pytest -q
|
||||||
|
|
||||||
build-push:
|
build-push:
|
||||||
needs: test
|
needs: test
|
||||||
|
|||||||
Reference in New Issue
Block a user