Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix coverage source paths for Codecov

joereynae7e0637f53a2
diff --git a/.github/workflows/test-litellm-matrix.yml b/.github/workflows/test-litellm-matrix.yml
index 9e24137ba9c..33a20e1d690 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 98e5b668c60..401e2d4baa6 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/",
+]