From d38498c3ef1962d080c098d6f6a2c421fab05f56 Mon Sep 17 00:00:00 2001 From: joereyna Date: Mon, 30 Mar 2026 11:06:36 -0700 Subject: [PATCH] Re-add Codecov coverage upload to GHA matrix workflow --- .github/workflows/test-litellm-matrix.yml | 14 +++++++++++++- codecov.yaml | 3 +++ pyproject.toml | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-litellm-matrix.yml b/.github/workflows/test-litellm-matrix.yml index 860d25636c..a62193b13a 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 c25cf0fbae..09fccc6b99 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 8c95a4421b..ad5d4974ca 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]