Skip to content

Commit eeef983

Browse files
committed
Added testing to the new Windows CI
1 parent c847a1d commit eeef983

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/OCV-PR-Windows.yaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
source_branch: "${{ github.event.repository.name == 'ci-gha-workflow' && '' || github.head_ref }}"
127127
gitcache: '${{ env.GIT_CACHE }}'
128128
workdir: '${{ github.workspace }}'
129-
129+
130130
- name: Update extra dnn models
131131
if: ${{ matrix.arch != 'arm64' }}
132132
timeout-minutes: 60
@@ -153,3 +153,31 @@ jobs:
153153
builddir: 'build-contrib'
154154
generator: '${{ matrix.vs }}'
155155
options: '-A ${{ matrix.cmake_arch }} -DOPENCV_EXTRA_MODULES_PATH=opencv_contrib/modules ${{ env.CMAKE_OPT }}'
156+
157+
- name: Run OpenCV tests
158+
uses: ./run-tests
159+
env:
160+
OPENCV_TEST_DATA_PATH: '${{ env.HOME }}/opencv_extra/testdata'
161+
OPENCV_TEST_REQUIRE_DATA: 1
162+
OPENCV_TEST_CHECK_OPTIONAL_DATA: 1
163+
PYTHONPATH: '${{ env.HOME }}/${{ env.MAIN_BUILD_DIR }}/python_loader:$PYTHONPATH'
164+
# TODO: enable later
165+
# ASAN_OPTIONS: 'detect_leaks=0'
166+
with:
167+
workdir: '${{ env.HOME }}'
168+
builddir: '${{ env.MAIN_BUILD_DIR }}'
169+
logdir: '${{ env.HOME }}/${{ env.MAIN_BUILD_DIR }}'
170+
plan: "test-plan-${{ matrix.branch }}.json"
171+
# NOTE: Just keeping this construction here for possible future use:
172+
# ${{ (github.event.repository.name == 'opencv_contrib') && format('''linux-contrib-{0}''', matrix.branch) || '' }}
173+
suite: "[ ${{ (github.event.repository.name == 'opencv_contrib') && '''linux-contrib''' || '''linux''' }} ]"
174+
filter: "[ 'ubuntu-common', ${{ matrix.avx2 && '''ubuntu-avx2''' }} ]"
175+
enable_python: "true"
176+
enable_java: "true"
177+
suffix: '${{ matrix.version }}_${{ matrix.branch }}'
178+
179+
- if: ${{ always() && env.WARNINGS == '1' }}
180+
name: Warnings check
181+
run: |
182+
echo "::error Warnings have been found!"
183+
exit 1

0 commit comments

Comments
 (0)