This commit is contained in:
Jonathan Harker 2026-02-26 17:33:14 +13:00
parent 64caf4d379
commit 76e85baf83
2 changed files with 17 additions and 2 deletions

View file

@ -4,7 +4,7 @@ stages:
.venv-job:
before_script:
- uv venv -p 3.12 .venv
- uv venv -p 3.12 --clear .venv
- source .venv/bin/activate
- uv pip install -r requirements-dev.txt
cache:
@ -32,6 +32,7 @@ lint:flakes:
- uv pip install flake8
- flake8 $(git ls-files|grep py$)
# lint:ruff:
# stage: lint
# only:
@ -53,5 +54,19 @@ test:test:
only:
- pushes
extends: .venv-job
variables:
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
script:
- tox
coverage: '/TOTAL.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
when: always
paths:
- junit.xml
- coverage.xml
reports:
junit: junit.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml

View file

@ -5,7 +5,7 @@ For the full list of built-in configuration values, see the
"""
import sys
import sphinx_rtd_theme
# import sphinx_rtd_theme
from pathlib import Path