From ca23793ecce6aa0eceaac1aedd50d24034eab572 Mon Sep 17 00:00:00 2001 From: Adam Charnock Date: Thu, 10 Aug 2023 23:27:41 +0200 Subject: [PATCH] Excluding commands from code coverage reports --- .coveragerc | 4 +++- .github/workflows/test.yaml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index ca974559..23610086 100644 --- a/.coveragerc +++ b/.coveragerc @@ -8,7 +8,9 @@ source = data_file = .coverage/coverage omit = lightbus/utilities/testing.py - lightbus/commands/ + # Commands are executed in a separate interpreter, so do not + # get included in the coverage results (although maybe we could) + lightbus/commands/*.py [report] exclude_lines = diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d126f8aa..fb49b8cf 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,10 +6,11 @@ on: - '.github/workflows/test.yaml' - 'lightbus/**' - 'tests/**' + - 'lightbus_vendored/**' - 'poetry.lock' - 'pyproject.toml' - 'pytest.ini' - - 'lightbus_vendored/**' + - '.coveragerc' jobs: test: