Skip to content

Commit 9ea7298

Browse files
committed
Test Python bindings and typing with CUDA modules too.
1 parent fe36894 commit 9ea7298

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

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

+14
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,17 @@ jobs:
223223
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 }}
224224
env:
225225
GTEST_FILTER_STRING: '-Sz_Depth_Cn_Inter_Rotate.Rotate/7:Sz_Depth_Cn_Inter_Rotate.Rotate/34:Sz_Depth_Cn_Inter_Rotate.Rotate/55'
226+
- name: Python3 Bindings
227+
timeout-minutes: 60
228+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
229+
run: |
230+
cd $HOME/build
231+
python3 $HOME/opencv/modules/python/test/test.py --repo $HOME/opencv -v
232+
- name: Python3 Apps
233+
timeout-minutes: 60
234+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
235+
run: |
236+
cd $HOME/build
237+
if [ -f "$HOME/opencv/apps/python_app_test.py" ]; then
238+
python3 "$HOME/opencv/apps/python_app_test.py" --repo $HOME/opencv -v
239+
fi

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

+14
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,17 @@ jobs:
139139
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 }}
140140
env:
141141
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'
142+
- name: Python3 Bindings
143+
timeout-minutes: 60
144+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
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+
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
151+
run: |
152+
cd $HOME/build
153+
if [ -f "$HOME/opencv/apps/python_app_test.py" ]; then
154+
python3 "$HOME/opencv/apps/python_app_test.py" --repo $HOME/opencv -v
155+
fi

0 commit comments

Comments
 (0)