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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
ci: run unit tests on pushes to main and litellm_internal_staging
Yuneng Jiang37ca659f8475
diff --git a/.github/workflows/test-code-quality.yml b/.github/workflows/test-code-quality.ymlindex ae31395521a..fab05fc2bbb 100644--- a/.github/workflows/test-code-quality.yml+++ b/.github/workflows/test-code-quality.yml@@ -7,13 +7,17 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: readconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:code-quality:diff --git a/.github/workflows/test-unit-core-utils.yml b/.github/workflows/test-unit-core-utils.ymlindex d6d6353238f..a01f09559c6 100644--- a/.github/workflows/test-unit-core-utils.yml+++ b/.github/workflows/test-unit-core-utils.yml@@ -7,6 +7,10 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: read@@ -14,8 +18,8 @@ permissions:pull-requests: writeconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:core-utils:diff --git a/.github/workflows/test-unit-documentation.yml b/.github/workflows/test-unit-documentation.ymlindex c12a289ce9f..50589cb5926 100644--- a/.github/workflows/test-unit-documentation.yml+++ b/.github/workflows/test-unit-documentation.yml@@ -7,13 +7,17 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: readconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:documentation:diff --git a/.github/workflows/test-unit-enterprise-routing.yml b/.github/workflows/test-unit-enterprise-routing.ymlindex 13136c968d1..a64f00f4744 100644--- a/.github/workflows/test-unit-enterprise-routing.yml+++ b/.github/workflows/test-unit-enterprise-routing.yml@@ -7,6 +7,10 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: read@@ -14,8 +18,8 @@ permissions:pull-requests: writeconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:enterprise-routing:diff --git a/.github/workflows/test-unit-integrations.yml b/.github/workflows/test-unit-integrations.ymlindex c95ed4e7c24..39752cf8e5d 100644--- a/.github/workflows/test-unit-integrations.yml+++ b/.github/workflows/test-unit-integrations.yml@@ -7,6 +7,10 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: read@@ -14,8 +18,8 @@ permissions:pull-requests: writeconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:integrations:diff --git a/.github/workflows/test-unit-llm-providers.yml b/.github/workflows/test-unit-llm-providers.ymlindex df78564ab0c..4d1c921f723 100644--- a/.github/workflows/test-unit-llm-providers.yml+++ b/.github/workflows/test-unit-llm-providers.yml@@ -7,13 +7,17 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: readconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:vertex-ai:diff --git a/.github/workflows/test-unit-misc.yml b/.github/workflows/test-unit-misc.ymlindex 9afaaaead93..505e22cfed4 100644--- a/.github/workflows/test-unit-misc.yml+++ b/.github/workflows/test-unit-misc.yml@@ -7,6 +7,10 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: read@@ -14,8 +18,8 @@ permissions:pull-requests: writeconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:misc:diff --git a/.github/workflows/test-unit-proxy-auth.yml b/.github/workflows/test-unit-proxy-auth.ymlindex 97dfaed6e81..c27fe16d611 100644--- a/.github/workflows/test-unit-proxy-auth.yml+++ b/.github/workflows/test-unit-proxy-auth.yml@@ -7,6 +7,10 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: read@@ -14,8 +18,8 @@ permissions:pull-requests: writeconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:proxy-auth:diff --git a/.github/workflows/test-unit-proxy-db.yml b/.github/workflows/test-unit-proxy-db.ymlindex b0ee56f5a5c..60d2e471862 100644--- a/.github/workflows/test-unit-proxy-db.yml+++ b/.github/workflows/test-unit-proxy-db.yml@@ -7,13 +7,17 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: readconcurrency:- group: ${{ github.workflow }}-${{ github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}# Semantic matrix: each shard groups tests by concern (auth, server, logging, …)# rather than alphabetical letter ranges. Adding a new test file means adding itdiff --git a/.github/workflows/test-unit-proxy-endpoints.yml b/.github/workflows/test-unit-proxy-endpoints.ymlindex b3eb8f79a43..6a51d2a8578 100644--- a/.github/workflows/test-unit-proxy-endpoints.yml+++ b/.github/workflows/test-unit-proxy-endpoints.yml@@ -7,14 +7,18 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingworkflow_dispatch:permissions:contents: readconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:proxy-endpoints:diff --git a/.github/workflows/test-unit-proxy-infra.yml b/.github/workflows/test-unit-proxy-infra.ymlindex 884d62289b9..913653a1711 100644--- a/.github/workflows/test-unit-proxy-infra.yml+++ b/.github/workflows/test-unit-proxy-infra.yml@@ -7,6 +7,10 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: read@@ -14,8 +18,8 @@ permissions:pull-requests: writeconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:proxy-infra:diff --git a/.github/workflows/test-unit-proxy-legacy.yml b/.github/workflows/test-unit-proxy-legacy.ymlindex bcbf365babf..49aa5f9f51d 100644--- a/.github/workflows/test-unit-proxy-legacy.yml+++ b/.github/workflows/test-unit-proxy-legacy.yml@@ -7,13 +7,17 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: readconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:test:diff --git a/.github/workflows/test-unit-responses-caching-types.yml b/.github/workflows/test-unit-responses-caching-types.ymlindex 2f177587997..5b336452069 100644--- a/.github/workflows/test-unit-responses-caching-types.yml+++ b/.github/workflows/test-unit-responses-caching-types.yml@@ -7,6 +7,10 @@ on:- litellm_internal_staging- litellm_oss_staging- "litellm_**"+ push:+ branches:+ - main+ - litellm_internal_stagingpermissions:contents: read@@ -14,8 +18,8 @@ permissions:pull-requests: writeconcurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:responses-caching-types: