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]

Re-add Codecov coverage upload to GHA matrix workflow

joereynad38498c3ef19
diff --git a/.github/workflows/test-litellm-matrix.yml b/.github/workflows/test-litellm-matrix.yml
index 860d25636c5..a62193b13a5 100644
--- a/.github/workflows/test-litellm-matrix.yml
+++ b/.github/workflows/test-litellm-matrix.yml
@@ -171,4 +171,16 @@ jobs:
--reruns ${{ matrix.test-group.reruns }} \
--reruns-delay 1 \
--dist=loadscope \
- --durations=20
+ --durations=20 \
+ --cov=litellm \
+ --cov-report=xml:coverage-${{ matrix.test-group.name }}.xml \
+ --cov-append
+
+ - name: Upload coverage to Codecov
+ if: always()
+ uses: codecov/codecov-action@v5
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: coverage-${{ matrix.test-group.name }}.xml
+ flags: ${{ matrix.test-group.name }}
+ fail_ci_if_error: false
diff --git a/codecov.yaml b/codecov.yaml
index c25cf0fbae8..09fccc6b995 100644
--- a/codecov.yaml
+++ b/codecov.yaml
@@ -17,6 +17,9 @@ component_management:
- component_id: "Proxy_Authentication"
paths:
- "*/proxy/auth/**"
+ - component_id: "Enterprise"
+ paths:
+ - "enterprise/**"
comment:
layout: "header, diff, flags, components" # show component info in the PR comment
diff --git a/pyproject.toml b/pyproject.toml
index 8c95a4421bb..ad5d4974cac 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -167,6 +167,7 @@ langfuse = "^2.45.0"
fastapi-offline = "^1.7.3"
fakeredis = "^2.27.1"
pytest-rerunfailures = "^14.0"
+pytest-cov = "^5.0"
parameterized = "^0.9.0"
[tool.poetry.group.proxy-dev.dependencies]