From 83b153a14a8a4c17a8fbe4e2bf8f37fbc3a7c6aa Mon Sep 17 00:00:00 2001 From: David Perl Date: Thu, 15 May 2025 09:47:57 +0200 Subject: [PATCH] ci: include lines with >=3 characters in report --- .github/workflows/pytest.yml | 4 +--- pyproject.toml | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 8bb1f20b..147c2046 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -55,9 +55,7 @@ jobs: - name: Run Pytest with Coverage id: coverage - run: | - pip install coverage pytest pytest-random-order pytest-cov - pytest --random-order --cov --cov-config=pyproject.toml --cov-branch --cov-report=xml --no-cov-on-fail tests/unit_tests/ + run: pytest --random-order --cov --cov-config=pyproject.toml --cov-branch --cov-report=xml --no-cov-on-fail tests/unit_tests/ - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/pyproject.toml b/pyproject.toml index 7494540f..4877aaec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,7 @@ dev = [ "pytest-timeout~=2.2", "pytest-xvfb~=3.0", "pytest~=8.0", + "pytest-cov~=6.1.1", ] [project.urls] @@ -113,6 +114,6 @@ exclude_lines = [ "if TYPE_CHECKING:", "return NotImplemented", "raise NotImplementedError", - "...", + "\\.\\.\\.", 'if __name__ == "__main__":', ]