From 0d7e61f65fd19c1da691c8b83d2380645572685b Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Fri, 29 May 2026 17:57:34 -0400 Subject: [PATCH] CI: install into a venv (runner Python is PEP 668 managed) Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 0685c3c..4278d5f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -21,9 +21,12 @@ jobs: - uses: actions/checkout@v4 - name: Install + run tests run: | - python3 -m pip install --quiet --upgrade pip - python3 -m pip install --quiet -r requirements.txt pytest - python3 -m pytest -q + # Runner image's system Python is PEP 668 externally-managed, so use a venv. + python3 -m venv .venv + . .venv/bin/activate + pip install --quiet --upgrade pip + pip install --quiet -r requirements.txt pytest + pytest -q build-push: needs: test