Compare commits

...

1 Commits

Author SHA1 Message Date
Andy Lee
6b465d5a0f fix: Use uv venv for Arch Linux CI wheel installation
- Use astral-sh/setup-uv@v4 action for consistency with other jobs
- Create virtual environment with uv venv to bypass PEP 668 restrictions
- Install wheels using uv pip install for faster dependency resolution
- Maintain tool consistency across the entire CI pipeline

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-16 17:11:04 -07:00

View File

@@ -87,7 +87,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
with: with:
ref: ${{ inputs.ref }} ref: ${{ inputs.ref }}
submodules: recursive submodules: recursive
@@ -98,7 +98,7 @@ jobs:
python-version: ${{ matrix.python }} python-version: ${{ matrix.python }}
- name: Install uv - name: Install uv
uses: astral-sh/setup-uv@v4 uses: astral-sh/setup-uv@v6
- name: Install system dependencies (Ubuntu) - name: Install system dependencies (Ubuntu)
if: runner.os == 'Linux' if: runner.os == 'Linux'
@@ -322,24 +322,29 @@ jobs:
pacman -S --noconfirm python python-pip gcc git zlib openssl pacman -S --noconfirm python python-pip gcc git zlib openssl
- name: Download ALL wheel artifacts from this run - name: Download ALL wheel artifacts from this run
uses: actions/download-artifact@v4 uses: actions/download-artifact@v5
with: with:
# Don't specify name, download all artifacts # Don't specify name, download all artifacts
path: ./wheels path: ./wheels
- name: Install wheels (pip automatically picks matching tags from wheels directory) - name: Install uv
uses: astral-sh/setup-uv@v6
- name: Create virtual environment and install wheels
run: | run: |
python -m pip install --upgrade pip uv venv
pip install --find-links wheels leann-core source .venv/bin/activate || source .venv/Scripts/activate
pip install --find-links wheels leann-backend-hnsw uv pip install --find-links wheels leann-core
pip install --find-links wheels leann-backend-diskann uv pip install --find-links wheels leann-backend-hnsw
pip install --find-links wheels leann uv pip install --find-links wheels leann-backend-diskann
uv pip install --find-links wheels leann
- name: Import & tiny runtime check - name: Import & tiny runtime check
env: env:
OMP_NUM_THREADS: 1 OMP_NUM_THREADS: 1
MKL_NUM_THREADS: 1 MKL_NUM_THREADS: 1
run: | run: |
source .venv/bin/activate || source .venv/Scripts/activate
python - <<'PY' python - <<'PY'
import leann import leann
import leann_backend_hnsw as h import leann_backend_hnsw as h