From 9b94482373a9f5acce20393071a6cd675fa735e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=95=D0=BC=D0=B5?= =?UTF-8?q?=D0=BB=D1=8C=D1=8F=D0=BD=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Thu, 3 Sep 2026 11:30:19 +0300 Subject: [PATCH] CI: use venv to avoid PEP 668 (externally-managed) --- .gitea/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 125e34f..7f02c6b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,6 +13,8 @@ jobs: - name: Install Python and tools run: | apk add --no-cache python3 py3-pip git + python3 -m venv /opt/venv + echo "/opt/venv/bin" >> "$GITHUB_PATH" - name: Checkout run: | @@ -23,14 +25,14 @@ jobs: - name: Install dependencies run: | - python3 -m pip install --upgrade pip - python3 -m pip install --break-system-packages -e ".[dev]" + python -m pip install --upgrade pip + python -m pip install -e ".[dev]" - name: Lint (ruff) - run: python3 -m ruff check src tests + run: ruff check src tests - name: Typecheck (mypy) - run: python3 -m mypy src + run: mypy src - name: Tests (pytest + coverage) - run: python3 -m pytest -v --cov=selectel_ml_tui --cov-report=term-missing \ No newline at end of file + run: python -m pytest -v --cov=selectel_ml_tui --cov-report=term-missing \ No newline at end of file