Skip to content

Commit 52883c3

Browse files
committed
use cmd
1 parent ee7a6fa commit 52883c3

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/windows.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,28 @@ jobs:
160160
gradle clean build --info
161161
gradle test -Prun_tests -DMODELS_PATH=${{ env.TEST_DATA }} -Ddevice=CPU --info
162162
163-
- name: Custom user operation tests
163+
- name: Custom user operation tests (CMD)
164164
working-directory: ${{ env.OPENVINO_CONTRIB_REPO }}/modules/custom_operations
165+
shell: cmd
165166
run: |
166-
. "${{ env.INSTALL_DIR }}/setupvars.ps1"
167-
python3 -m pip install -r ${{ env.OPENVINO_CONTRIB_REPO }}/modules/custom_operations/tests/requirements.txt
167+
call C:\tools\opencv\build\setup_vars_opencv4.cmd
168+
call ${{ env.INSTALL_DIR }}\setupvars.bat
169+
python3 -m pip install -r ${{ env.OPENVINO_CONTRIB_REPO }}\modules\custom_operations\tests\requirements.txt
168170
169-
python3 -m pytest -k "not sparse_conv" tests/run_tests.py
171+
python3 -m pytest -k "not sparse_conv" tests\run_tests.py
170172
env:
171173
CUSTOM_OP_LIB: ${{ env.OPENVINO_REPO }}/bin/intel64/${{ env.CMAKE_BUILD_TYPE }}/user_ov_extensions.dll
172174

175+
# - name: Custom user operation tests
176+
# working-directory: ${{ env.OPENVINO_CONTRIB_REPO }}/modules/custom_operations
177+
# run: |
178+
# . "${{ env.INSTALL_DIR }}/setupvars.ps1"
179+
# python3 -m pip install -r ${{ env.OPENVINO_CONTRIB_REPO }}/modules/custom_operations/tests/requirements.txt
180+
#
181+
# python3 -m pytest -k "not sparse_conv" tests/run_tests.py
182+
# env:
183+
# CUSTOM_OP_LIB: ${{ env.OPENVINO_REPO }}/bin/intel64/${{ env.CMAKE_BUILD_TYPE }}/user_ov_extensions.dll
184+
173185
- name: Upload Test Results
174186
uses: actions/upload-artifact@v4
175187
if: ${{ !cancelled() }}

0 commit comments

Comments
 (0)