From 7afb090ede3e82d418e6b6681c8e821bfa8715a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Kr=C3=A1l?= Date: Fri, 26 Jan 2024 14:31:46 +0100 Subject: [PATCH] [squash] Test minimal coverage --- .github/workflows/pytest.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 2784979b..a2327307 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -6,6 +6,8 @@ on: - 'pytest.ini' pull_request: types: [opened, synchronize, reopened] +env: + MIN_COVERAGE_REQUIRED: 70 jobs: unittesting: runs-on: ubuntu-22.04 @@ -36,4 +38,4 @@ jobs: coverage run --omit="tests/**/*.py" -m pytest - name: Report code coverage run: | - coverage report -i -m + coverage report -i -m --fail-under=$MIN_COVERAGE_REQUIRED