File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 5252 - name : Run CPP-PY Bindings Test
5353 run : |
5454 source venv/bin/activate
55- PYTHONPATH="$PYTHONPATH:build/py_bindings" pytest --data=./data --config=./tests/python/accuracy/public_scope.json tests/cpp/accuracy/test_bindings.py
55+ PYTHONPATH="$PYTHONPATH:build/model_api/cpp/ py_bindings/ " pytest --data=./data --config=./tests/python/accuracy/public_scope.json tests/cpp/accuracy/test_bindings.py
Original file line number Diff line number Diff line change @@ -63,8 +63,15 @@ FetchContent_MakeAvailable(json googletest)
6363
6464include (../cmake/common.cmake)
6565
66+ find_package (Python3 REQUIRED)
67+ execute_process (
68+ COMMAND ${Python3_EXECUTABLE} -c "from openvino.utils import get_cmake_path; print(get_cmake_path(), end='')"
69+ OUTPUT_VARIABLE OpenVINO_DIR_PY
70+ ERROR_QUIET
71+ )
72+
6673find_package (OpenCV REQUIRED COMPONENTS core highgui videoio imgproc imgcodecs)
67- find_package (OpenVINO REQUIRED COMPONENTS Runtime)
74+ find_package (OpenVINO REQUIRED COMPONENTS Runtime HINTS " ${OpenVINO_DIR_PY} " )
6875
6976add_subdirectory (../../../src/cpp ${tests_BINARY_DIR} /model_api/cpp)
7077
You can’t perform that action at this time.
0 commit comments