From d9f07f6b7c7a6518456abd024158ef50f11525a1 Mon Sep 17 00:00:00 2001 From: Attumm Date: Thu, 1 Aug 2024 13:14:33 +0200 Subject: [PATCH 1/2] Changed line to run code coverage to remove test file from coverage --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dea36bb..371b1cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: - name: Run Unit Tests run: | - coverage run -m unittest discover + coverage run --omit="*/tests/*,*/test_*.py" -m unittest discover - name: Upload coverage reports to Codecov, send only once if: matrix.python-version == '3.12' From 50f14b84a9d8a910f2580e664752cbd9fb12a0f2 Mon Sep 17 00:00:00 2001 From: Attumm Date: Thu, 1 Aug 2024 13:19:39 +0200 Subject: [PATCH 2/2] Changed omitted files and dirs from code coverage with test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 371b1cc..fcb3c34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: - name: Run Unit Tests run: | - coverage run --omit="*/tests/*,*/test_*.py" -m unittest discover + coverage run --omit="*tests*" -m unittest discover - name: Upload coverage reports to Codecov, send only once if: matrix.python-version == '3.12'