CI: use venv to avoid PEP 668 (externally-managed)

This commit is contained in:
2026-09-03 11:30:19 +03:00
parent d25f885eec
commit 9b94482373
+7 -5
View File
@@ -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
run: python -m pytest -v --cov=selectel_ml_tui --cov-report=term-missing