From 7e4f1cd55f8bde298006250c2004b934c2e29aa3 Mon Sep 17 00:00:00 2001 From: Patrick Ogenstad Date: Tue, 15 Oct 2024 20:53:05 +0200 Subject: [PATCH] Limit coverage run to --source=infrahub_sdk This is to avoid having the coverage being reported for the test folder when using `coverage run`. --- .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 05f0660f..783855d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,7 +164,7 @@ jobs: if: matrix.python-version == '3.12' run: | source $(poetry env info --path)/bin/activate - coverage run -m pytest tests/unit/pytest_plugin + coverage run --source=infrahub_sdk -m pytest tests/unit/pytest_plugin coverage report -m coverage xml codecov --flags python-filler-${{ matrix.python-version }}