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
fix(ci): run dependency tests in an isolated Python environment
Joshua Valluru6aa921c1bc18
diff --git a/.github/workflows/test-dependency-installs.yml b/.github/workflows/test-dependency-installs.ymlindex c3d33cbcfe2..0a72e302ea8 100644--- a/.github/workflows/test-dependency-installs.yml+++ b/.github/workflows/test-dependency-installs.yml@@ -108,7 +108,7 @@ jobs:mkdir -p /tmp/mcp-gate-reportsfor profile in core mcp proxy; dofor mode in minimum locked; do- uv run --no-project --python 3.12 --with 'packaging==26.0' --with 'coverage==7.14.0' \+ uv run --isolated --no-project --python 3.12 --with 'packaging==26.0' --with 'coverage==7.14.0' \coverage run --append --branch --source=tests/mcp_dependency_tests,tests/base_sdk_tests \tests/mcp_dependency_tests/runner.py check \--wheel "${wheel[0]}" --profile "$profile" --mode "$mode" \@@ -135,9 +135,9 @@ jobs:tests/base_sdk_tests/check_base_sdk_install.pyfidone- uv run --no-project --python 3.12 --with 'packaging==26.0' \+ uv run --isolated --no-project --python 3.12 --with 'packaging==26.0' \--with 'pytest==9.0.3' --with 'pytest-cov==5.0.0' --with 'coverage==7.14.0' \- pytest tests/mcp_dependency_tests/test_runner.py \+ python -m pytest tests/mcp_dependency_tests/test_runner.py \--cov=tests/mcp_dependency_tests \--cov=tests/base_sdk_tests --cov-append --cov-branch \--cov-report=xml:mcp-dependency-coverage.xmldiff --git a/tests/mcp_dependency_tests/README.md b/tests/mcp_dependency_tests/README.mdindex 6323592e9d5..2d35082cffd 100644--- a/tests/mcp_dependency_tests/README.md+++ b/tests/mcp_dependency_tests/README.md@@ -13,7 +13,7 @@ uv build --wheel --package litellm-proxy-extras --out-dir /tmp/mcp-wheelsUse the root wheel's exact filename in this command. The environment path must not already exist:```bash-uv run --no-project --python 3.12 tests/mcp_dependency_tests/runner.py check \+uv run --isolated --no-project --python 3.12 tests/mcp_dependency_tests/runner.py check \--wheel /tmp/mcp-wheels/litellm-1.103.0-cp310-abi3-linux_x86_64.whl \--profile mcp --mode locked --python 3.12 --environment /tmp/mcp2-dev```@@ -39,7 +39,7 @@ CI measures runner coverage during actual installs. It measures isolated wheel cUse CI's uv version (0.10.9). Set an absolute cutoff in `candidate.toml` consistent with the root dependency-age policy, review advisories, then run `lock` for each profile/mode with the newly built wheel:```bash-uv run --no-project --python 3.12 tests/mcp_dependency_tests/runner.py lock \+uv run --isolated --no-project --python 3.12 tests/mcp_dependency_tests/runner.py lock \--wheel /tmp/mcp-wheels/litellm-1.103.0-cp310-abi3-linux_x86_64.whl \--profile mcp --mode locked```