From 74593daf404b01e3849ea5d92bf8a44abd5ec975 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 20 Sep 2025 16:05:44 -0700 Subject: [PATCH] ci/cd fix litellm_mapped_enterprise_tests --- .circleci/config.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 76454c10e1..4a44242697 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