Fix CI: use venv to avoid PEP 668 externally-managed-environment error
CI / lint-and-test (push) Successful in 1m21s

This commit is contained in:
2026-05-28 15:38:55 +02:00
parent 401d4e2717
commit 53724c1671
+15 -7
View File
@@ -18,20 +18,28 @@ jobs:
- name: Set up Python - name: Set up Python
run: | run: |
apt-get update && apt-get install -y python3 python3-pip python3-venv || true apt-get update && apt-get install -y python3 python3-venv || true
python3 --version python3 --version
- name: Install dependencies - name: Install dependencies
run: | run: |
python3 -m pip install --upgrade pip python3 -m venv .venv
python3 -m pip install -r requirements.txt source .venv/bin/activate
python3 -m pip install -r requirements-dev.txt pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Lint with ruff - name: Lint with ruff
run: python3 -m ruff check . run: |
source .venv/bin/activate
ruff check .
- name: Format check with ruff - name: Format check with ruff
run: python3 -m ruff format --check . run: |
source .venv/bin/activate
ruff format --check .
- name: Run tests - name: Run tests
run: python3 -m pytest -q run: |
source .venv/bin/activate
pytest -q