Skip to content

Commit

Permalink
Enforce 75% code coverage in CI via Tox
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Jun 25, 2024
1 parent 6a50191 commit bdd4e45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def coverage(c):
"""Generate code coverage of running the test suite."""
c.run(
f"{VENV_BIN}/pytest --cov=pelican --cov-report term-missing "
"--cov-fail-under 74",
"--cov-fail-under 75",
pty=PTY,
)
c.run(f"{VENV_BIN}/coverage html", pty=PTY)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ deps =

commands =
{envpython} --version
pytest -s --cov=pelican pelican
pytest -s --cov=pelican --cov-fail-under 75 pelican

[testenv:docs]
basepython = python3.11
Expand Down

0 comments on commit bdd4e45

Please sign in to comment.