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]

add litellm router testing

Ishaan Jaffd65ba87014a6
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 850415b9d7e..1a66a17a54a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -146,6 +146,33 @@ jobs:
python -m pytest -vv tests/proxy_admin_ui_tests -x --junitxml=test-results/junit.xml --durations=5
no_output_timeout: 120m
+ # Store test results
+ - store_test_results:
+ path: test-results
+ litellm_router_testing:
+ docker:
+ - image: cimg/python:3.11
+ working_directory: ~/project
+
+ steps:
+ - checkout
+ - run:
+ name: Install Dependencies
+ command: |
+ python -m pip install --upgrade pip
+ python -m pip install -r requirements.txt
+ pip install "pytest==7.3.1"
+ pip install "pytest-retry==1.6.3"
+ pip install "pytest-asyncio==0.21.1"
+ # Run pytest and generate JUnit XML report
+ - run:
+ name: Run tests
+ command: |
+ pwd
+ ls
+ python -m pytest -vv -k "router and not openrouter" -x -s -v --junitxml=test-results/junit.xml --durations=5
+ no_output_timeout: 120m
+
# Store test results
- store_test_results:
path: test-results
@@ -604,6 +631,12 @@ workflows:
only:
- main
- /litellm_.*/
+ - litellm_router_testing:
+ filters:
+ branches:
+ only:
+ - main
+ - /litellm_.*/
- ui_endpoint_testing:
filters:
branches:
@@ -645,6 +678,9 @@ workflows:
- local_testing
- build_and_test
- load_testing
+ - litellm_router_testing
+ - ui_endpoint_testing
+ - installing_litellm_on_python
- proxy_log_to_otel_tests
- proxy_pass_through_endpoint_tests
filters: