[ci] tro to execute pytest in a venv

This commit is contained in:
bronsen 2025-12-09 23:29:54 +01:00
parent 7eeb4799db
commit 8a160c1c82

View file

@ -22,8 +22,11 @@ steps:
- markdownlint-cli2 .
# currently doesn't work and bronsen can't be arsed to fix
# - name: Run Tests
# image: docker.io/astral/uv:python${PYTHON_VERSION}-trixie-slim
# commands:
# - uv run pytest tests.py
# coverage: uv run pytest tests.py --cov-report= --cov=src # no cov report on terminal: useful for CI
- name: Run Tests
image: docker.io/astral/uv:python${PYTHON_VERSION}-trixie-slim
commands:
- python -m venv venv
- source venv/bin/activate
- python -m pip install -r requirements.txt -r requirements.dev.txt
- python -m pytest tests.py
# coverage: uv run pytest tests.py --cov-report= --cov=src # no cov report on terminal: useful for CI