From bdd4e45628c901cad3c95f281c28d52a2bb676b4 Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Tue, 25 Jun 2024 10:54:24 +0200 Subject: [PATCH] Enforce 75% code coverage in CI via Tox --- tasks.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 3a1722eb..cf9851ed 100644 --- a/tasks.py +++ b/tasks.py @@ -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) diff --git a/tox.ini b/tox.ini index 61e8908a..7b8598ac 100644 --- a/tox.ini +++ b/tox.ini @@ -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