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]

ci/cd fix litellm_mapped_enterprise_tests

Ishaan Jaffer74593daf404b
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 76454c10e1e..4a442426976 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1050,6 +1050,51 @@ jobs:
ls
python -m pytest -vv tests/test_litellm --cov=litellm --cov-report=xml -x -s -v --junitxml=test-results/junit-litellm.xml --durations=10 -n 8
no_output_timeout: 120m
+ - run:
+ name: Rename the coverage files
+ command: |
+ mv coverage.xml litellm_mapped_tests_coverage.xml
+ mv .coverage litellm_mapped_tests_coverage
+
+ # Store test results
+ - store_test_results:
+ path: test-results
+ - persist_to_workspace:
+ root: .
+ paths:
+ - litellm_mapped_tests_coverage.xml
+ - litellm_mapped_tests_coverage
+ litellm_mapped_enterprise_tests:
+ docker:
+ - image: cimg/python:3.11
+ auth:
+ username: ${DOCKERHUB_USERNAME}
+ password: ${DOCKERHUB_PASSWORD}
+ working_directory: ~/project
+
+ steps:
+ - checkout
+ - setup_google_dns
+ - run:
+ name: Install Dependencies
+ command: |
+ python -m pip install --upgrade pip
+ python -m pip install -r requirements.txt
+ pip install "pytest-mock==3.12.0"
+ pip install "pytest==7.3.1"
+ pip install "pytest-retry==1.6.3"
+ pip install "pytest-cov==5.0.0"
+ pip install "pytest-asyncio==0.21.1"
+ pip install "respx==0.22.0"
+ pip install "hypercorn==0.17.3"
+ pip install "pydantic==2.10.2"
+ pip install "mcp==1.10.1"
+ pip install "requests-mock>=1.12.1"
+ pip install "responses==0.25.7"
+ pip install "pytest-xdist==3.6.1"
+ pip install "semantic_router==0.1.10"
+ pip install "fastapi-offline==1.7.3"
+ - setup_litellm_enterprise_pip
- run:
name: Run enterprise tests
command: |
@@ -3175,6 +3220,12 @@ workflows:
only:
- main
- /litellm_.*/
+ - litellm_mapped_enterprise_tests:
+ filters:
+ branches:
+ only:
+ - main
+ - /litellm_.*/
- litellm_mapped_tests:
filters:
branches:
@@ -3219,6 +3270,7 @@ workflows:
- guardrails_testing
- llm_responses_api_testing
- litellm_mapped_tests
+ - litellm_mapped_enterprise_tests
- batches_testing
- litellm_utils_testing
- pass_through_unit_testing
@@ -3279,6 +3331,7 @@ workflows:
- google_generate_content_endpoint_testing
- llm_responses_api_testing
- litellm_mapped_tests
+ - litellm_mapped_enterprise_tests
- batches_testing
- litellm_utils_testing
- pass_through_unit_testing