fix: force install local wheels in CI to prevent PyPI version conflicts
- Change from --find-links to direct wheel installation with --force-reinstall - This ensures CI uses locally built packages with latest source code - Prevents uv from using PyPI packages with same version number but old code - Fixes CI test failures where old code (without metadata_file_path) was used Root cause: CI was installing leann-backend-diskann v0.2.1 from PyPI instead of the locally built wheel with same version number.
This commit is contained in:
12
.github/workflows/build-reusable.yml
vendored
12
.github/workflows/build-reusable.yml
vendored
@@ -205,14 +205,14 @@ jobs:
|
|||||||
uv venv
|
uv venv
|
||||||
source .venv/bin/activate || source .venv/Scripts/activate
|
source .venv/bin/activate || source .venv/Scripts/activate
|
||||||
|
|
||||||
# Install the built wheels
|
# Install the built wheels directly to ensure we use locally built packages
|
||||||
# Use --find-links to let uv choose the correct wheel for the platform
|
# Force local wheel installation to avoid PyPI version conflicts
|
||||||
if [[ "${{ matrix.os }}" == ubuntu-* ]]; then
|
if [[ "${{ matrix.os }}" == ubuntu-* ]]; then
|
||||||
uv pip install leann-core --find-links packages/leann-core/dist
|
uv pip install packages/leann-core/dist/*.whl --force-reinstall
|
||||||
uv pip install leann --find-links packages/leann/dist
|
uv pip install packages/leann/dist/*.whl --force-reinstall
|
||||||
fi
|
fi
|
||||||
uv pip install leann-backend-hnsw --find-links packages/leann-backend-hnsw/dist
|
uv pip install packages/leann-backend-hnsw/dist/*.whl --force-reinstall
|
||||||
uv pip install leann-backend-diskann --find-links packages/leann-backend-diskann/dist
|
uv pip install packages/leann-backend-diskann/dist/*.whl --force-reinstall
|
||||||
|
|
||||||
# Install test dependencies using extras
|
# Install test dependencies using extras
|
||||||
uv pip install -e ".[test]"
|
uv pip install -e ".[test]"
|
||||||
|
|||||||
Reference in New Issue
Block a user