Skip to content

Commit e1dd817

Browse files
committed
fix(ci): use Python 3.13 in Arch Linux smoke test
Arch Linux has upgraded to Python 3.14, but tokenizers/PyO3 only supports up to Python 3.13. Use uv to install and manage Python 3.13 explicitly instead of relying on system Python.
1 parent 2e13832 commit e1dd817

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/build-reusable.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ jobs:
448448
# Initialize pacman keyring to avoid "no secret key available" error
449449
pacman-key --init
450450
pacman -Syu --noconfirm
451-
pacman -S --noconfirm python python-pip gcc git zlib openssl
451+
# Install build essentials (uv will manage Python version)
452+
pacman -S --noconfirm gcc git zlib openssl
452453
453454
- name: Download ALL wheel artifacts from this run
454455
uses: actions/download-artifact@v5
@@ -461,7 +462,9 @@ jobs:
461462

462463
- name: Create virtual environment and install wheels
463464
run: |
464-
uv venv
465+
# Use Python 3.13 explicitly (Arch has Python 3.14 which PyO3/tokenizers doesn't support yet)
466+
uv python install 3.13
467+
uv venv --python 3.13
465468
source .venv/bin/activate || source .venv/Scripts/activate
466469
uv pip install --find-links wheels leann-core
467470
uv pip install --find-links wheels leann-backend-hnsw

0 commit comments

Comments
 (0)