Skip to content

Commit 2bcb9f2

Browse files
committed
Test Python bindings and typing with CUDA modules too.
1 parent 35559f9 commit 2bcb9f2

4 files changed

+56
-0
lines changed

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

+15
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020
TARGET_BRANCH_NAME: ${{ github.base_ref }}
2121
ANT_HOME: '/usr/share/ant'
2222
GIT_CACHE_DOCKER: '/home/ci/git_cache'
23+
PYTHONPATH: /home/ci/build/python_loader:$PYTHONPATH
2324
OPENCV_TEST_DATA_PATH: '/home/ci/opencv_extra/testdata'
2425
OPENCV_CONTRIB_DOCKER_WORKDIR: '/home/ci/opencv_contrib'
2526
PARALLEL_JOBS: 8
@@ -223,3 +224,17 @@ jobs:
223224
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 }}
224225
env:
225226
GTEST_FILTER_STRING: '-Sz_Depth_Cn_Inter_Rotate.Rotate/7:Sz_Depth_Cn_Inter_Rotate.Rotate/34:Sz_Depth_Cn_Inter_Rotate.Rotate/55'
227+
- name: Python3 Bindings
228+
timeout-minutes: 60
229+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
230+
run: |
231+
cd $HOME/build
232+
python3 $HOME/opencv/modules/python/test/test.py --repo $HOME/opencv -v
233+
- name: Python3 Apps
234+
timeout-minutes: 60
235+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
236+
run: |
237+
cd $HOME/build
238+
if [ -f "$HOME/opencv/apps/python_app_test.py" ]; then
239+
python3 "$HOME/opencv/apps/python_app_test.py" --repo $HOME/opencv -v
240+
fi

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

+15
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020
TARGET_BRANCH_NAME: ${{ github.base_ref }}
2121
ANT_HOME: '/usr/share/ant'
2222
GIT_CACHE_DOCKER: '/home/ci/git_cache'
23+
PYTHONPATH: /home/ci/build/python_loader:$PYTHONPATH
2324
OPENCV_TEST_DATA_PATH: '/home/ci/opencv_extra/testdata'
2425
OPENCV_CONTRIB_DOCKER_WORKDIR: '/home/ci/opencv_contrib'
2526
PARALLEL_JOBS: 8
@@ -223,3 +224,17 @@ jobs:
223224
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 }}
224225
env:
225226
GTEST_FILTER_STRING: '-Sz_Depth_Cn_Inter_Rotate.Rotate/7:Sz_Depth_Cn_Inter_Rotate.Rotate/34:Sz_Depth_Cn_Inter_Rotate.Rotate/55'
227+
- name: Python3 Bindings
228+
timeout-minutes: 60
229+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
230+
run: |
231+
cd $HOME/build
232+
python3 $HOME/opencv/modules/python/test/test.py --repo $HOME/opencv -v
233+
- name: Python3 Apps
234+
timeout-minutes: 60
235+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
236+
run: |
237+
cd $HOME/build
238+
if [ -f "$HOME/opencv/apps/python_app_test.py" ]; then
239+
python3 "$HOME/opencv/apps/python_app_test.py" --repo $HOME/opencv -v
240+
fi

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

+13
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020
TARGET_BRANCH_NAME: ${{ github.base_ref }}
2121
ANT_HOME: '/usr/share/ant'
2222
GIT_CACHE_DOCKER: '/home/ci/git_cache'
23+
PYTHONPATH: /home/ci/build/python_loader:$PYTHONPATH
2324
OPENCV_TEST_DATA_PATH: '/home/ci/opencv_extra/testdata'
2425
OPENCV_DOCKER_WORKDIR: '/home/ci/opencv'
2526
DNN_MODELS: '/home/ci/dnn-models'
@@ -139,3 +140,15 @@ jobs:
139140
run: cd $HOME/build && xvfb-run -a bin/opencv_test_dnn --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }} ${{ env.EXTRA_GTEST_OPTIONS }}
140141
env:
141142
GTEST_FILTER_STRING: '-Test_Model.TextRecognition/0:Test_Model.TextRecognition/1:Test_Model.TextRecognitionWithCTCPrefixBeamSearch/0:Test_Model.TextRecognitionWithCTCPrefixBeamSearch/1:Test_ONNX_layers.Convolution3D/1:Test_ONNX_layers.Convolution3D_bias/1:Test_ONNX_layers.Shape/0:Test_ONNX_layers.Shape/1:Test_ONNX_layers.Power/0:Test_ONNX_layers.Power/1:Test_ONNX_layers.Elementwise_Log/0:Test_ONNX_layers.Elementwise_Log/1:Test_ONNX_layers.Elementwise_not/0:Test_ONNX_layers.Elementwise_not/1:Test_ONNX_layers.Compare_EQ/0:Test_ONNX_layers.Compare_EQ/1:Test_ONNX_layers.Compare_GT/0:Test_ONNX_layers.Compare_GT/1:Test_ONNX_layers.Compare_LT/0:Test_ONNX_layers.Compare_LT/1:Test_ONNX_layers.Compare_GTorEQ/0:Test_ONNX_layers.Compare_GTorEQ/1:Test_ONNX_layers.Compare_LEorEQ/0:Test_ONNX_layers.Compare_LEorEQ/1:Test_ONNX_layers.Eltwise3D/0:Test_ONNX_layers.Eltwise3D/1:Test_ONNX_layers.PoolConv3D/1:Test_ONNX_layers.Div/0:Test_ONNX_layers.Div/1:Test_ONNX_layers.Split/0:Test_ONNX_layers.Split/1:Test_ONNX_layers.SubFromConst/0:Test_ONNX_layers.SubFromConst/1:Test_TensorFlow_layers.Convolution3D/1:Test_TensorFlow_layers.concat_3d/1:Test_ONNX_layers.LSTM_Activations/0:Test_ONNX_nets.LResNet100E_IR/1:Test_ONNX_nets.Emotion_ferplus/0:Test_ONNX_nets.Emotion_ferplus/1:Test_ONNX_nets.Resnet34_kinetics/1'
143+
- name: Python3 Bindings
144+
timeout-minutes: 60
145+
run: |
146+
cd $HOME/build
147+
python3 $HOME/opencv/modules/python/test/test.py --repo $HOME/opencv -v
148+
- name: Python3 Apps
149+
timeout-minutes: 60
150+
run: |
151+
cd $HOME/build
152+
if [ -f "$HOME/opencv/apps/python_app_test.py" ]; then
153+
python3 "$HOME/opencv/apps/python_app_test.py" --repo $HOME/opencv -v
154+
fi

.github/workflows/OCV-PR-5.x-U20-Cuda.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020
TARGET_BRANCH_NAME: ${{ github.base_ref }}
2121
ANT_HOME: '/usr/share/ant'
2222
GIT_CACHE_DOCKER: '/home/ci/git_cache'
23+
PYTHONPATH: /home/ci/build/python_loader:$PYTHONPATH
2324
OPENCV_TEST_DATA_PATH: '/home/ci/opencv_extra/testdata'
2425
OPENCV_DOCKER_WORKDIR: '/home/ci/opencv'
2526
DNN_MODELS: '/home/ci/dnn-models'
@@ -139,3 +140,15 @@ jobs:
139140
run: cd $HOME/build && xvfb-run -a bin/opencv_test_dnn --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }} ${{ env.EXTRA_GTEST_OPTIONS }}
140141
env:
141142
GTEST_FILTER_STRING: '-Test_Model.TextRecognition/0:Test_Model.TextRecognition/1:Test_Model.TextRecognitionWithCTCPrefixBeamSearch/0:Test_Model.TextRecognitionWithCTCPrefixBeamSearch/1:Test_ONNX_layers.Convolution3D/1:Test_ONNX_layers.Convolution3D_bias/1:Test_ONNX_layers.Shape/0:Test_ONNX_layers.Shape/1:Test_ONNX_layers.Power/0:Test_ONNX_layers.Power/1:Test_ONNX_layers.Elementwise_Log/0:Test_ONNX_layers.Elementwise_Log/1:Test_ONNX_layers.Elementwise_not/0:Test_ONNX_layers.Elementwise_not/1:Test_ONNX_layers.Compare_EQ/0:Test_ONNX_layers.Compare_EQ/1:Test_ONNX_layers.Compare_GT/0:Test_ONNX_layers.Compare_GT/1:Test_ONNX_layers.Compare_LT/0:Test_ONNX_layers.Compare_LT/1:Test_ONNX_layers.Compare_GTorEQ/0:Test_ONNX_layers.Compare_GTorEQ/1:Test_ONNX_layers.Compare_LEorEQ/0:Test_ONNX_layers.Compare_LEorEQ/1:Test_ONNX_layers.Eltwise3D/0:Test_ONNX_layers.Eltwise3D/1:Test_ONNX_layers.PoolConv3D/1:Test_ONNX_layers.Div/0:Test_ONNX_layers.Div/1:Test_ONNX_layers.Split/0:Test_ONNX_layers.Split/1:Test_ONNX_layers.SubFromConst/0:Test_ONNX_layers.SubFromConst/1:Test_TensorFlow_layers.Convolution3D/1:Test_TensorFlow_layers.concat_3d/1:Test_ONNX_layers.LSTM_Activations/0:Test_ONNX_nets.LResNet100E_IR/1:Test_ONNX_nets.Emotion_ferplus/0:Test_ONNX_nets.Emotion_ferplus/1:Test_ONNX_nets.Resnet34_kinetics/1'
143+
- name: Python3 Bindings
144+
timeout-minutes: 60
145+
run: |
146+
cd $HOME/build
147+
python3 $HOME/opencv/modules/python/test/test.py --repo $HOME/opencv -v
148+
- name: Python3 Apps
149+
timeout-minutes: 60
150+
run: |
151+
cd $HOME/build
152+
if [ -f "$HOME/opencv/apps/python_app_test.py" ]; then
153+
python3 "$HOME/opencv/apps/python_app_test.py" --repo $HOME/opencv -v
154+
fi

0 commit comments

Comments
 (0)