feat: add minimal testing workflow and enhance coverage requirements in tox configuration

Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
d9pouces
2026-09-06 10:45:28 +02:00
parent 6b6bc541dd
commit cb3313bf65
3 changed files with 40 additions and 3 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ change_dir = {env_tmp_dir}
set_env =
COVERAGE_FILE = {env_dir}/coverage.db
commands =
pytest {tox_root}/tests --cov-config={tox_root}/pyproject.toml --cov-fail-under=0 {posargs}
python3 -m pytest {tox_root}/tests --cov-config={tox_root}/pyproject.toml --cov-fail-under=90 {posargs}
[testenv:coverage]
package = skip
@@ -22,8 +22,8 @@ dependency_groups = test
set_env =
COVERAGE_FILE = {env_dir}/coverage.db
commands =
python3 -m coverage combine
python3 -m coverage xml -o .tox/coverage.xml --ignore
python3 -m coverage combine {toxworkdir}/py313/coverage.db {toxworkdir}/py314/coverage.db
python3 -m coverage xml -o .tox/coverage.xml --ignore --fail-under=0
python3 -m coverage report -m --fail-under=94 --ignore --skip-covered
[testenv:packaging]