fix(ci): force-reinstall enterprise package to override PyPI version

poetry install includes litellm-enterprise from PyPI, then the editable
install step runs. When the same version is already installed, pip may
skip the editable install leaving the PyPI build in place - which may
lack methods added after the latest PyPI release. Adding
--force-reinstall ensures the local editable version always wins.

Fixes enterprise tests failing with AttributeError on methods that exist
locally but not in the cached PyPI-installed package.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Julio Quinteros Pro
2026-02-18 12:02:11 -03:00
co-authored by Claude Sonnet 4.6
parent 45d3d1adfd
commit 262c16adf5
+1 -1
View File
@@ -100,7 +100,7 @@ jobs:
- name: Setup litellm-enterprise
run: |
cd enterprise && poetry run pip install -e . && cd ..
cd enterprise && poetry run pip install --force-reinstall -e . && cd ..
- name: Generate Prisma client
run: |