Skip to content

Commit bcaf3d7

Browse files
committed
Fix more issues in CI scripts
1 parent 0425d59 commit bcaf3d7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/test_accuracy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: |
2626
source venv/bin/activate
2727
python -m pip install --upgrade pip
28-
pip install model_api/python/[tests] --extra-index-url https://download.pytorch.org/whl/cpu
28+
pip install model_api/python/[tests, build] --extra-index-url https://download.pytorch.org/whl/cpu
2929
- name: Prepare test data
3030
run: |
3131
source venv/bin/activate
@@ -35,11 +35,12 @@ jobs:
3535
source venv/bin/activate
3636
pytest --data=./data tests/python/accuracy/test_accuracy.py
3737
DATA=data pytest --data=./data tests/python/accuracy/test_YOLOv8.py
38-
- name: Install CPP ependencies
38+
- name: Install CPP dependencies
3939
run: |
4040
sudo bash model_api/cpp/install_dependencies.sh
4141
- name: Build CPP Test
4242
run: |
43+
source venv/bin/activate
4344
mkdir build && cd build
4445
cmake ../tests/cpp/accuracy/ -DCMAKE_CXX_FLAGS=-Werror
4546
make -j

.github/workflows/test_precommit.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ 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
7576
mkdir build && cd build
7677
cmake ../tests/cpp/precommit/ -DCMAKE_CXX_FLAGS=-Werror
7778
cmake --build . -j $((`nproc`*2+2))
@@ -112,8 +113,8 @@ jobs:
112113
shell: bash
113114
run: |
114115
mkdir build && cd build
115-
MSYS_NO_PATHCONV=1 cmake ../examples/cpp/ -DOpenVINO_DIR=$GITHUB_WORKSPACE/w_openvino_toolkit_windows_2024.6.0.17404.4c0f47d2335_x86_64/runtime/cmake -DOpenCV_DIR=$GITHUB_WORKSPACE/opencv/opencv/build -DCMAKE_CXX_FLAGS=/WX
116-
cmake --build . --config Release -j $((`nproc`*2+2)) -DENABLE_PY_BINDINGS=OFF
116+
MSYS_NO_PATHCONV=1 cmake ../examples/cpp/ -DOpenVINO_DIR=$GITHUB_WORKSPACE/w_openvino_toolkit_windows_2024.6.0.17404.4c0f47d2335_x86_64/runtime/cmake -DOpenCV_DIR=$GITHUB_WORKSPACE/opencv/opencv/build -DCMAKE_CXX_FLAGS=/WX -DENABLE_PY_BINDINGS=OFF
117+
cmake --build . --config Release -j $((`nproc`*2+2))
117118
- name: Run sync sample
118119
shell: cmd
119120
# .\w_openvino_toolkit_windows_2023.0.0.10926.b4452d56304_x86_64\setupvars.bat exits with 0 code without moving to a next command. Set PATH manually

0 commit comments

Comments
 (0)