mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-14 09:05:34 +00:00
d132b1bf51
* Remove redundant matrix unit test workflow All test paths in test-litellm-matrix.yml are fully covered by the newer semantic unit test workflows (test-unit-*.yml), making the matrix workflow redundant CI spend. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Add Codecov coverage reporting to semantic unit test workflows Add coverage collection (--cov) and Codecov OIDC upload to both reusable base workflows and all 12 caller workflows, replacing the coverage reporting that was previously only in the matrix workflow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Move id-token/pull-requests permissions to job level for multi-job workflows For workflows with multiple jobs (llm-providers, proxy-db), move id-token: write and pull-requests: write from workflow level to job level so permissions are scoped to only the jobs that need them. Removes zizmor inline suppressions that were masking the issue. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
name: "Unit Tests: Caching (Redis)"
|
|
|
|
# Uses cloud Redis credentials — only runs on trusted branches, not PRs.
|
|
# This prevents external PRs from accessing Redis credentials.
|
|
on:
|
|
push:
|
|
branches: [main, "litellm_*"]
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
pull-requests: write
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
caching-redis:
|
|
uses: ./.github/workflows/_test-unit-services-base.yml
|
|
with:
|
|
# Redis-only tests that do NOT require provider API keys.
|
|
# Tests needing API keys (test_caching.py, test_caching_ssl.py, test_prometheus_service.py,
|
|
# test_router_caching.py) are in Phase 3 integration workflows.
|
|
test-path: >-
|
|
tests/local_testing/test_dual_cache.py
|
|
tests/local_testing/test_redis_batch_optimizations.py
|
|
tests/local_testing/test_router_utils.py
|
|
workers: 2
|
|
reruns: 2
|
|
timeout-minutes: 20
|
|
enable-redis: true
|
|
enable-postgres: false
|
|
artifact-name: caching-redis
|
|
secrets:
|
|
REDIS_HOST: ${{ secrets.REDIS_HOST }}
|
|
REDIS_PORT: ${{ secrets.REDIS_PORT }}
|
|
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
|
|
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
|
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
|
|
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
|