Skip to content

Commit a78e212

Browse files
authored
Added Python tests to CUDA build for 4.x (#270)
1 parent 14be510 commit a78e212

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/OCV-Contrib-PR-4.x-U20-Cuda.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ env:
2323
OPENCV_TEST_DATA_PATH: '/home/ci/opencv_extra/testdata'
2424
OPENCV_TEST_REQUIRE_DATA: 1
2525
OPENCV_CONTRIB_DOCKER_WORKDIR: '/home/ci/opencv_contrib'
26+
PYTHONPATH: '/home/ci/build/python_loader:$PYTHONPATH'
2627
PARALLEL_JOBS: 8
2728

2829
jobs:
@@ -42,7 +43,7 @@ jobs:
4243
- /usr/lib/x86_64-linux-gnu/libnvcuvid.so:/usr/lib/x86_64-linux-gnu/libnvcuvid.so
4344
- /usr/lib/x86_64-linux-gnu/libnvidia-encode.so:/usr/lib/x86_64-linux-gnu/libnvidia-encode.so
4445
- /usr/lib/x86_64-linux-gnu/libcuda.so.1:/usr/lib/x86_64-linux-gnu/libcuda.so
45-
46+
4647
steps:
4748
- name: Brief system information
4849
timeout-minutes: 60
@@ -226,3 +227,7 @@ jobs:
226227
run: cd $HOME/build && xvfb-run -a bin/opencv_perf_cudawarping --perf_min_samples=1 --perf_force_samples=1 --perf_verify_sanity --skip_unstable=1 --perf_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }}
227228
env:
228229
GTEST_FILTER_STRING: '-Sz_Depth_Cn_Inter_Rotate.Rotate/7:Sz_Depth_Cn_Inter_Rotate.Rotate/34:Sz_Depth_Cn_Inter_Rotate.Rotate/55'
230+
- name: Accuracy:python3
231+
timeout-minutes: 60
232+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
233+
run: python3 $HOME/opencv/modules/python/test/test_cuda.py --repo $HOME/opencv -v

0 commit comments

Comments
 (0)