Skip to content

Commit aa8ada6

Browse files
committed
Force cmake to use python from venv
1 parent 9ae15b6 commit aa8ada6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test_accuracy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
source venv/bin/activate
4444
mkdir build && cd build
45-
Python3_ROOT_DIR= cmake ../tests/cpp/accuracy/ -DCMAKE_CXX_FLAGS=-Werror
45+
cmake ../tests/cpp/accuracy/ -DCMAKE_CXX_FLAGS=-Werror -DPython3_FIND_VIRTUALENV=ONLY
4646
make -j
4747
- name: Run CPP Test
4848
run: |

.github/workflows/test_precommit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
run: |
7575
source venv/bin/activate
7676
mkdir build && cd build
77-
Python3_ROOT_DIR= cmake ../tests/cpp/precommit/ -DCMAKE_CXX_FLAGS=-Werror
77+
cmake ../tests/cpp/precommit/ -DCMAKE_CXX_FLAGS=-Werror -DPython3_FIND_VIRTUALENV=ONLY
7878
cmake --build . -j $((`nproc`*2+2))
7979
- name: Run test
8080
run: |

0 commit comments

Comments
 (0)