mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix(ci): run dependency tests in an isolated Python environment
This commit is contained in:
parent
b42e2827a5
commit
6aa921c1bc
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue