Skip to content

Commit 71bba96

Browse files
fix: pass Python3_EXECUTABLE for CTest venv discovery
Same fix as anolis — CMake resolves .venv/bin/python symlink to the system Python, which has no pytest. Explicitly passing the venv path prevents symlink resolution.
1 parent 8ccd407 commit 71bba96

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,12 @@ jobs:
128128
run: uv sync --locked --extra dev
129129

130130
- name: Configure
131-
run: cmake --preset "${{ matrix.preset }}"
131+
run: |
132+
EXTRA_ARGS=""
133+
if [ "${{ matrix.grpc_integration }}" = "true" ]; then
134+
EXTRA_ARGS="-DPython3_EXECUTABLE=$(pwd)/.venv/bin/python"
135+
fi
136+
cmake --preset "${{ matrix.preset }}" $EXTRA_ARGS
132137
133138
- name: Build
134139
run: cmake --build --preset "${{ matrix.preset }}" --parallel

0 commit comments

Comments
 (0)