From 06383205979f05d1c050d077573ec69115b81501 Mon Sep 17 00:00:00 2001 From: Sergey Rybakov Date: Fri, 11 Aug 2023 22:53:24 +0600 Subject: [PATCH] coverage --fail-under added to tox and coverage tests --- .github/workflows/on_push.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on_push.yml b/.github/workflows/on_push.yml index 494bed5..bbe5182 100644 --- a/.github/workflows/on_push.yml +++ b/.github/workflows/on_push.yml @@ -128,7 +128,7 @@ jobs: run: | source .venv/bin/activate coverage run -m pytest --junitxml=report.xml - coverage report + coverage report --fail-under=96 coverage xml env: PIP_DISABLE_PIP_VERSION_CHECK: 1 diff --git a/pyproject.toml b/pyproject.toml index b53af97..bc997cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -421,7 +421,7 @@ deps = commands = coverage run -m pytest {posargs:tests} --random-order - coverage report + coverage report --fail-under=96 set_env = PIP_EXTRA_INDEX_URL = {env:PIP_EXTRA_INDEX_URL}