CI: use venv to avoid PEP 668 (externally-managed)
This commit is contained in:
@@ -13,6 +13,8 @@ jobs:
|
|||||||
- name: Install Python and tools
|
- name: Install Python and tools
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache python3 py3-pip git
|
apk add --no-cache python3 py3-pip git
|
||||||
|
python3 -m venv /opt/venv
|
||||||
|
echo "/opt/venv/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
@@ -23,14 +25,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python3 -m pip install --break-system-packages -e ".[dev]"
|
python -m pip install -e ".[dev]"
|
||||||
|
|
||||||
- name: Lint (ruff)
|
- name: Lint (ruff)
|
||||||
run: python3 -m ruff check src tests
|
run: ruff check src tests
|
||||||
|
|
||||||
- name: Typecheck (mypy)
|
- name: Typecheck (mypy)
|
||||||
run: python3 -m mypy src
|
run: mypy src
|
||||||
|
|
||||||
- name: Tests (pytest + coverage)
|
- 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
|
||||||
Reference in New Issue
Block a user