From f0fd3e0b1e661e20d783e911a4338ab74462e87f Mon Sep 17 00:00:00 2001 From: Aleg Vilinski <58322186+italvi@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:36:00 +0200 Subject: [PATCH] chore: add minimum threshold of 95% for coverage (#222) --- .github/workflows/tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cbc9734b..e6fd3930 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -67,10 +67,11 @@ jobs: - name: Install package run: poetry install - name: Run pytest - run: | - poetry run coverage run -m pytest --junitxml=reports/unittest.xml - poetry run coverage report - poetry run coverage xml -o reports/py-coverage.cobertura.xml + run: poetry run coverage run -m pytest --junitxml=reports/unittest.xml + - name: Check coverage + run: poetry run coverage report --fail-under=95 + - name: Save test results + run: poetry run coverage xml -o reports/py-coverage.cobertura.xml - name: Archive test results uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5 with: