From ca5835c58e9da035b78d5cc7ff4a14def454bece Mon Sep 17 00:00:00 2001 From: "jabber.developer2" Date: Sat, 17 Jan 2026 18:37:01 +0300 Subject: [PATCH] ci: fix coverage lcov exclude pattern The code is built in /usr/src/profanity/ inside Docker, so excluding '/usr/*' removes all source files! Fix: exclude only system headers/libs (/usr/include/*, /usr/lib/*), not the entire /usr/ tree. Also add --ignore-errors empty to handle edge cases. --- .github/workflows/ci-code.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-code.yml b/.github/workflows/ci-code.yml index 4fc5c73c..344d7614 100644 --- a/.github/workflows/ci-code.yml +++ b/.github/workflows/ci-code.yml @@ -113,7 +113,10 @@ jobs: make -j$(nproc) make check || true lcov --capture --directory . --output-file /coverage/coverage.info --ignore-errors inconsistent - lcov --remove /coverage/coverage.info "/usr/*" "*/tests/*" --output-file /coverage/coverage.info --ignore-errors inconsistent + lcov --remove /coverage/coverage.info \ + "/usr/include/*" "/usr/lib/*" "*/tests/*" \ + --output-file /coverage/coverage.info \ + --ignore-errors inconsistent,empty ' - name: Upload coverage to Codecov uses: codecov/codecov-action@v4