From e7e0637f53a27aaceea4142f457f0bd42690c7fe Mon Sep 17 00:00:00 2001 From: joereyna Date: Mon, 30 Mar 2026 22:38:54 -0700 Subject: [PATCH] Fix coverage source paths for Codecov --- .github/workflows/test-litellm-matrix.yml | 3 ++- pyproject.toml | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-litellm-matrix.yml b/.github/workflows/test-litellm-matrix.yml index 9e24137ba9..33a20e1d69 100644 --- a/.github/workflows/test-litellm-matrix.yml +++ b/.github/workflows/test-litellm-matrix.yml @@ -174,7 +174,8 @@ jobs: --durations=20 \ --cov=litellm \ --cov-report=xml:coverage-${{ matrix.test-group.name }}.xml \ - --cov-append + --cov-append \ + --cov-config=pyproject.toml - name: Save coverage report if: always() diff --git a/pyproject.toml b/pyproject.toml index 98e5b668c6..401e2d4baa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -213,3 +213,10 @@ filterwarnings = [ [tool.coverage.run] source = ["litellm"] relative_files = true + +[tool.coverage.paths] +source = [ + "litellm/", + "/home/runner/work/litellm/litellm/litellm/", + "**/litellm/", +]