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: .venv-job:
before_script: before_script:
- uv venv -p 3.12 .venv - uv venv -p 3.12 --clear .venv
- source .venv/bin/activate - source .venv/bin/activate
- uv pip install -r requirements-dev.txt - uv pip install -r requirements-dev.txt
cache: cache:
@ -32,6 +32,7 @@ lint:flakes:
- uv pip install flake8 - uv pip install flake8
- flake8 $(git ls-files|grep py$) - flake8 $(git ls-files|grep py$)
# lint:ruff: # lint:ruff:
# stage: lint # stage: lint
# only: # only:
@ -53,5 +54,19 @@ test:test:
only: only:
- pushes - pushes
extends: .venv-job extends: .venv-job
variables:
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
script: script:
- tox - 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 sys
import sphinx_rtd_theme # import sphinx_rtd_theme
from pathlib import Path from pathlib import Path