fix: ensure venv uses correct Python version from matrix

- Explicitly specify Python version when creating venv with uv
- Prevents mismatch between build Python (e.g., 3.10) and test Python
- Fixes: _diskannpy.cpython-310-x86_64-linux-gnu.so in Python 3.11 error

The issue: uv venv was defaulting to Python 3.11 regardless of matrix version
This commit is contained in:
Andy Lee
2025-08-07 12:01:11 -07:00
parent df69a49123
commit f30d1a2530

View File

@@ -206,8 +206,8 @@ jobs:
- name: Install built packages for testing
run: |
# Create a virtual environment
uv venv
# Create a virtual environment with the correct Python version
uv venv --python python${{ matrix.python }}
source .venv/bin/activate || source .venv/Scripts/activate
# Install the built wheels directly to ensure we use locally built packages