Skip to content

Commit 0da8141

Browse files
authored
Test Python CUDA on 5.x (#257)
1 parent 5050205 commit 0da8141

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
env:
16-
EXTRA_CMAKE_OPTIONS: '-DBUILD_DOCS=ON -DPYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 -DOPENCV_DOWNLOAD_PATH=/home/ci/binaries_cache -DBUILD_EXAMPLES=ON -DOPENCV_ENABLE_NONFREE=ON -DWITH_CUDA=ON -DBUILD_LIST=dnn,cudev,ts -DCUDA_ARCH_BIN=6.1 -DWITH_VA=OFF'
16+
EXTRA_CMAKE_OPTIONS: '-DBUILD_DOCS=ON -DPYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 -DOPENCV_DOWNLOAD_PATH=/home/ci/binaries_cache -DBUILD_EXAMPLES=ON -DOPENCV_ENABLE_NONFREE=ON -DWITH_CUDA=ON -DBUILD_LIST=dnn,cudev,ts,python3,photo -DCUDA_ARCH_BIN=6.1 -DWITH_VA=OFF'
1717
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
1818
PR_AUTHOR_FORK: ${{ github.event.pull_request.head.repo.full_name }}
1919
SOURCE_BRANCH_NAME: ${{ github.head_ref }}
@@ -25,6 +25,7 @@ env:
2525
OPENCV_TEST_CHECK_OPTIONAL_DATA: 1
2626
OPENCV_DOCKER_WORKDIR: '/home/ci/opencv'
2727
DNN_MODELS: '/home/ci/dnn-models'
28+
PYTHONPATH: '/home/ci/build/python_loader:$PYTHONPATH'
2829
PARALLEL_JOBS: 8
2930
GTEST_FILTER_STRING: '-Test_Model.TextRecognition/0:Test_Model.TextRecognition/1:Test_Model.TextRecognitionWithCTCPrefixBeamSearch/0:Test_Model.TextRecognitionWithCTCPrefixBeamSearch/1:Test_ONNX_layers.LSTM_Activations/0:Test_ONNX_nets.Resnet34_kinetics/1:Test_TensorFlow_layers.Convolution3D/1:Test_TensorFlow_layers.concat_3d/1'
3031

@@ -144,3 +145,7 @@ jobs:
144145
timeout-minutes: 60
145146
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
146147
run: export OPENCV_FORCE_DNN_ENGINE=1 && cd $HOME/build && xvfb-run -a bin/opencv_test_dnn --gtest_filter=${{ env.GTEST_FILTER_STRING }} --test_threads=$PARALLEL_JOBS ${{ env.EXTRA_GTEST_OPTIONS }}
148+
- name: Accuracy:python3
149+
timeout-minutes: 60
150+
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
151+
run: python3 ${{ env.OPENCV_DOCKER_WORKDIR }}/modules/python/test/test_cuda.py --repo ${{ env.OPENCV_DOCKER_WORKDIR }} -v

0 commit comments

Comments
 (0)