Skip to content

Commit 35001f8

Browse files
committed
Workaround missing nanobind with global package installation
1 parent aa8ada6 commit 35001f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test_accuracy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ jobs:
4040
sudo bash model_api/cpp/install_dependencies.sh
4141
- name: Build CPP Test
4242
run: |
43-
source venv/bin/activate
43+
pip install nanobind==2.4.0
4444
mkdir build && cd build
45-
cmake ../tests/cpp/accuracy/ -DCMAKE_CXX_FLAGS=-Werror -DPython3_FIND_VIRTUALENV=ONLY
45+
cmake ../tests/cpp/accuracy/ -DCMAKE_CXX_FLAGS=-Werror
4646
make -j
4747
- name: Run CPP Test
4848
run: |

.github/workflows/test_precommit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ jobs:
7272
python tests/cpp/precommit/prepare_data.py -d data -p tests/cpp/precommit/public_scope.json
7373
- name: Build
7474
run: |
75-
source venv/bin/activate
7675
mkdir build && cd build
77-
cmake ../tests/cpp/precommit/ -DCMAKE_CXX_FLAGS=-Werror -DPython3_FIND_VIRTUALENV=ONLY
76+
pip install nanobind==2.4.0
77+
cmake ../tests/cpp/precommit/ -DCMAKE_CXX_FLAGS=-Werror
7878
cmake --build . -j $((`nproc`*2+2))
7979
- name: Run test
8080
run: |

0 commit comments

Comments
 (0)