forked from github/pelican
Enforce 75% code coverage in CI via Tox
This commit is contained in:
parent
6a50191728
commit
bdd4e45628
2 changed files with 2 additions and 2 deletions
2
tasks.py
2
tasks.py
|
|
@ -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)
|
||||||
|
|
|
||||||
2
tox.ini
2
tox.ini
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue