From 93d340c1ad7699bb81ff7494b6d87b72d75b5134 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Fri, 10 Apr 2026 17:09:33 -0700 Subject: [PATCH] [Fix] CI: fix uv migration breaking 7 CircleCI jobs setup_litellm_enterprise_pip was running `uv sync --package litellm-enterprise` which overwrites the shared .venv, stripping out pytest, prisma, and other dev/test deps. Since litellm-enterprise is a workspace member it is already installed by the main `uv sync --all-groups --all-extras`. Replace with a verification-only import check. Also prefix bare `ruff check` with `uv run --no-sync` since uv does not auto-activate the venv. --- .circleci/config.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 428468919e..c3643b20c4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,7 +20,12 @@ commands: steps: - run: name: "Install local version of litellm-enterprise" - command: uv sync --frozen --package litellm-enterprise --python "$(which python)" + command: | + # litellm-enterprise is a uv workspace member and is already installed + # by the main `uv sync --all-groups --all-extras`. Do NOT run + # `uv sync --package litellm-enterprise` here — that overwrites the + # shared .venv and strips out dev/test deps (pytest, prisma, etc.). + uv run --no-sync python -c "import litellm_enterprise; print('litellm-enterprise OK:', litellm_enterprise.__file__)" setup_litellm_test_deps: steps: - checkout @@ -1610,7 +1615,7 @@ jobs: fi uv sync --frozen --all-groups --all-extras --python "$(which python)" - run: uv run --no-sync python -c "from litellm import *" || (echo '🚨 import failed, this means you introduced unprotected imports! 🚨'; exit 1) - - run: ruff check ./litellm + - run: uv run --no-sync ruff check ./litellm # - run: python ./tests/documentation_tests/test_general_setting_keys.py - run: uv run --no-sync python ./tests/code_coverage_tests/check_licenses.py - run: uv run --no-sync python ./tests/code_coverage_tests/check_provider_folders_documented.py