From f36b10d3096d941fd8d1f4dde99117eae0d2ab19 Mon Sep 17 00:00:00 2001 From: Ashutosh619-sudo Date: Tue, 26 Dec 2023 22:11:55 +0530 Subject: [PATCH] change pytest cov --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 989eb762..f7d3a34b 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -14,7 +14,7 @@ jobs: run: | docker-compose -f docker-compose-pipeline.yml build docker-compose -f docker-compose-pipeline.yml up -d - docker-compose -f docker-compose-pipeline.yml exec -T api pytest tests/ --cov --cov-report=xml --junit-xml=test-reports/report.xml --cov-fail-under=94 + docker-compose -f docker-compose-pipeline.yml exec -T api pytest tests/ --cov --cov-report=xml --junit-xml=test-reports/report.xml --cov-fail-under=88 echo "STATUS=$(cat pytest-coverage.txt | grep 'Required test' | awk '{ print $1 }')" >> $GITHUB_ENV echo "FAILED=$(cat test-reports/report.xml | awk -F'=' '{print $5}' | awk -F' ' '{gsub(/"/, "", $1); print $1}')" >> $GITHUB_ENV - name: Upload coverage reports to Codecov with GitHub Action