ci(deps): run wheel installation gates in GitHub Actions

This commit is contained in:
Joshua Valluru 2026-09-17 17:25:20 -07:00
parent eebc76cf2c
commit 0a87dc6cb1
2 changed files with 75 additions and 18 deletions

View file

@ -359,14 +359,6 @@ jobs:
uv run --no-sync python tests/windows_tests/check_windows_wheel_install.py
base_sdk_install:
parameters:
python_version:
type: string
default: "3.12"
resolution:
type: enum
enum: ["highest", "lowest-direct"]
default: "highest"
docker:
- image: cimg/python:3.12@sha256:9c796c23c84e84a66a964acb508d39dc5433c81a47e07efd56dccbbc2427e07c
auth:
@ -389,9 +381,8 @@ jobs:
environment:
UV_HTTP_TIMEOUT: "300"
command: |
uv venv /tmp/base-sdk --python "<< parameters.python_version >>"
uv pip install --python /tmp/base-sdk/bin/python \
--resolution "<< parameters.resolution >>" --no-sources -r pyproject.toml dist/*.whl
uv venv /tmp/base-sdk --python 3.12
VIRTUAL_ENV=/tmp/base-sdk uv pip install dist/*.whl
/tmp/base-sdk/bin/python tests/base_sdk_tests/check_base_sdk_install.py
local_testing_part1:
@ -3035,13 +3026,6 @@ workflows:
- provider_replay_harness
- base_sdk_install:
filters: *main_branches
- base_sdk_install:
name: base_sdk_minimum_<< matrix.python_version >>
resolution: lowest-direct
matrix:
parameters:
python_version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
filters: *main_branches
- local_testing_part1:
filters: *main_branches
- local_testing_part2:

View file

@ -0,0 +1,73 @@
name: Dependency Installations
on:
pull_request:
branches: [main, litellm_internal_staging, litellm_oss_staging, "litellm_**"]
push:
branches: [main, litellm_internal_staging]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
dependency-wheel:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.12"
- uses: ./.github/actions/setup-uv-with-retries
with:
version: "0.10.9"
- run: rustup toolchain install --no-self-update
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6
with:
workspaces: litellm-rust
cache-on-failure: true
- run: uv build --wheel --out-dir dist
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1
with:
name: dependency-wheels
path: dist/*.whl
if-no-files-found: error
base-sdk-install:
needs: dependency-wheel
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
resolution: [lowest-direct]
include:
- python: "3.12"
resolution: highest
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
with:
persist-credentials: false
- uses: ./.github/actions/setup-uv-with-retries
with:
version: "0.10.9"
- uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e
with:
name: dependency-wheels
path: dist
- name: Install the wheel and check the base SDK
env:
TEST_PYTHON: ${{ matrix.python }}
RESOLUTION: ${{ matrix.resolution }}
run: |
uv venv /tmp/base-sdk --python "$TEST_PYTHON"
uv pip install --python /tmp/base-sdk/bin/python \
--resolution "$RESOLUTION" --no-sources -r pyproject.toml dist/litellm-[0-9]*.whl
/tmp/base-sdk/bin/python -I tests/base_sdk_tests/check_base_sdk_install.py