[ci] tro to execute pytest in a venv
This commit is contained in:
parent
7eeb4799db
commit
8a160c1c82
1 changed files with 8 additions and 5 deletions
|
|
@ -22,8 +22,11 @@ steps:
|
||||||
- markdownlint-cli2 .
|
- markdownlint-cli2 .
|
||||||
|
|
||||||
# currently doesn't work and bronsen can't be arsed to fix
|
# currently doesn't work and bronsen can't be arsed to fix
|
||||||
# - name: Run Tests
|
- name: Run Tests
|
||||||
# image: docker.io/astral/uv:python${PYTHON_VERSION}-trixie-slim
|
image: docker.io/astral/uv:python${PYTHON_VERSION}-trixie-slim
|
||||||
# commands:
|
commands:
|
||||||
# - uv run pytest tests.py
|
- python -m venv venv
|
||||||
# coverage: uv run pytest tests.py --cov-report= --cov=src # no cov report on terminal: useful for CI
|
- 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue