Skip to content

Commit

Permalink
Fail build pipeline if code coverage is under threshold (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
papa99do authored Jan 22, 2025
1 parent 704a34c commit 6edba55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unit_test_200gb_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ jobs:
export PYTHONPATH="./tests:./src:."
set -o pipefail
pytest --ignore=tests/test_documentation.py --ignore=tests/compatibility_tests \
--durations=100 --cov=src --cov-branch --cov-context=test \
--durations=100 --cov=src --cov-branch --cov-context=test --cov-fail-under=69 \
--cov-report=html:cov_html --cov-report=xml:cov.xml --cov-report term:skip-covered \
--md-report --md-report-flavor gfm --md-report-output pytest_result_summary.md \
tests | tee pytest_output.txt
Expand All @@ -185,7 +185,7 @@ jobs:
echo "Running diff-cover against branch $BASE_BRANCH"
git fetch origin $BASE_BRANCH:$BASE_BRANCH
diff-cover cov.xml --html-report diff_cov.html --markdown-report diff_cov.md \
--compare-branch $BASE_BRANCH
--compare-branch $BASE_BRANCH --fail-under=95
else
echo "Skipping diff-cover on Push events"
echo "Skipped diff-cover on Push events" > marqo/diff_cov.md
Expand Down

0 comments on commit 6edba55

Please sign in to comment.