1
0
Fork 0
forked from github/pelican

Enforce 75% code coverage in CI via Tox

This commit is contained in:
Justin Mayer 2024-06-25 10:54:24 +02:00
commit bdd4e45628
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ def coverage(c):
"""Generate code coverage of running the test suite.""" """Generate code coverage of running the test suite."""
c.run( c.run(
f"{VENV_BIN}/pytest --cov=pelican --cov-report term-missing " f"{VENV_BIN}/pytest --cov=pelican --cov-report term-missing "
"--cov-fail-under 74", "--cov-fail-under 75",
pty=PTY, pty=PTY,
) )
c.run(f"{VENV_BIN}/coverage html", pty=PTY) c.run(f"{VENV_BIN}/coverage html", pty=PTY)

View file

@ -15,7 +15,7 @@ deps =
commands = commands =
{envpython} --version {envpython} --version
pytest -s --cov=pelican pelican pytest -s --cov=pelican --cov-fail-under 75 pelican
[testenv:docs] [testenv:docs]
basepython = python3.11 basepython = python3.11