From f30d1a2530081b51110a3915d8a5f81e44b30f92 Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Thu, 7 Aug 2025 12:01:11 -0700 Subject: [PATCH] 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 --- .github/workflows/build-reusable.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-reusable.yml b/.github/workflows/build-reusable.yml index 8da985c..7b3bbae 100644 --- a/.github/workflows/build-reusable.yml +++ b/.github/workflows/build-reusable.yml @@ -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