ci: move command line arguments into environment variables

This commit is contained in:
bronsen 2026-02-20 22:53:30 +01:00
parent 13ba6c0f55
commit e7ae259897

View file

@ -21,9 +21,14 @@ steps:
- 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
environment:
UV_LINK_MODE: copy
PIP_DISABLE_PIP_VERSION_CHECK: true
PIP_REQUIRE_VIRTUALENV: true
PIP_QUIET: true
commands: commands:
- python -m venv venv - python -m venv venv
- . venv/bin/activate - . venv/bin/activate
- pip install --disable-pip-version-check --require-virtualenv --quiet uv==0.10.2 - pip install uv==0.10.2
- uv run --active pytest tests.py - uv run --active pytest tests.py
# coverage: uv run pytest tests.py --cov-report= --cov=src # no cov report on terminal: useful for CI # coverage: uv run pytest tests.py --cov-report= --cov=src # no cov report on terminal: useful for CI