diff --git a/.github/workflows/test-dependency-installs.yml b/.github/workflows/test-dependency-installs.yml index 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-reports for profile in core mcp proxy; do for 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.py fi done - 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.xml diff --git a/tests/mcp_dependency_tests/README.md b/tests/mcp_dependency_tests/README.md index 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-wheels Use 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 c Use 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 ```