From d2db5261c7a12c49c201c72f459d18ad3610d55b Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Sun, 6 Oct 2024 21:08:35 +0400 Subject: [PATCH] Fail under 100, ignore __main__.py --- .github/workflows/ci.yml | 2 +- pyproject.toml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 504e2ce..c19fb66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,7 +112,7 @@ jobs: python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY # Report again and fail if under 100%. - python -Im coverage report --fail-under=99 + python -Im coverage report --fail-under=100 - name: Upload HTML report if check failed uses: actions/upload-artifact@v4 diff --git a/pyproject.toml b/pyproject.toml index 29cdcb6..6dcb3d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,8 +38,7 @@ warn_unused_configs = true warn_unused_ignores = true [tool.coverage.run] -branch = true -omit = ["*/setup.py"] +omit = ["src/trustme/__main__.py"] source = ["trustme"] [tool.coverage.paths]