@@ -155,11 +155,16 @@ jobs:
155155 with :
156156 python-version : ${{ matrix.python-version }}
157157
158+ - name : Setup UV package manager
159+ shell : bash
160+ run : |
161+ curl -LsSf https://astral.sh/uv/install.sh | sh
162+ uv --version
163+
158164 - name : Install Python build dependencies
159165 shell : bash
160166 run : |
161- python -m pip install --upgrade pip
162- pip install build wheel setuptools
167+ uv pip install --system build wheel setuptools
163168
164169 # Windows currently disabled, no symlink needed
165170 # - name: Create python3 symlink (Windows only)
@@ -183,7 +188,7 @@ jobs:
183188 shell : bash
184189 run : |
185190 cd bindings/python
186- pip install dist/*embed*.whl
191+ uv pip install --system dist/*embed*.whl
187192
188193 - name : Install example dependencies
189194 shell : bash
@@ -193,18 +198,18 @@ jobs:
193198 # For Python 3.13+, wheels might only be on PyTorch official index
194199 if [[ "$OSTYPE" == "darwin"* ]]; then
195200 # macOS: Install CPU-only PyTorch (supports MPS acceleration)
196- pip install torch --index-url https://download.pytorch.org/whl/cpu
197- pip install "numpy<2.0" requests sentence-transformers
201+ uv pip install --system torch --index-url https://download.pytorch.org/whl/cpu
202+ uv pip install --system "numpy<2.0" requests sentence-transformers
198203 else
199204 # Linux & Windows: Install CPU-only PyTorch to save space (avoid CUDA)
200- pip install torch --index-url https://download.pytorch.org/whl/cpu
201- pip install numpy requests sentence-transformers
205+ uv pip install --system torch --index-url https://download.pytorch.org/whl/cpu
206+ uv pip install --system numpy requests sentence-transformers
202207 fi
203208
204209 - name : Download datasets
205210 shell : bash
206211 run : |
207- pip install tqdm py7zr lxml
212+ uv pip install --system tqdm py7zr lxml
208213 cd bindings/python/examples
209214 echo "📥 Downloading MovieLens Small dataset..."
210215 python3 download_data.py movielens-small
0 commit comments