mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
feat: add minimal testing workflow and enhance coverage requirements in tox configuration
Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user