Skip to content

Commit

Permalink
Always run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed Nov 8, 2023
1 parent dda5366 commit c204d5d
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/OCV-Nightly-RISCV.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ env:
GIT_CACHE_DOCKER: '/home/ci/git_cache'
OPENCV_DOWNLOAD_PATH: '/home/ci/binaries_cache'
OPENCV_TEST_DATA_PATH: '/home/ci/opencv_extra/testdata'
TEST_RUNNER: 'ssh nnplich019'


jobs:
Expand Down Expand Up @@ -85,33 +86,45 @@ jobs:
-B ${{ env.BUILD_DIR }} \
-DCMAKE_TOOLCHAIN_FILE=${{ env.SRC_OPENCV }}/platforms/linux/riscv64-071-gcc.toolchain.cmake \
-DBUILD_SHARED_LIBS=OFF \
-DWITH_OPENCL=OFF \
-DOPENCV_EXTRA_MODULES_PATH=${{ env.SRC_OPENCV_CONTRIB }}/modules \
-DCMAKE_INSTALL_PREFIX=${{ env.BUILD_DIR }}/install
- name: Build OpenCV
timeout-minutes: 60
id: build-opencv
id: build
run: |
ninja -C ${{ env.BUILD_DIR }} install | tee ${{ env.BUILD_DIR }}/build-log.txt
- name: Deploy to remote host
timeout-minutes: 60
id: deploy
run: |
rsync -avz ${{ env.BUILD_DIR }}/bin/ nnplich019:./app --delete
rsync -az ${{ env.SRC_OPENCV_EXTRA }}/testdata nnplich019:./testdata --delete
- name: Run core test
timeout-minutes: 60
if: ${{ always() && steps.build.outcome == 'success' && steps.deploy.outcome == 'success' }}
run: |
ssh nnplich019 OPENCV_TEST_DATA_PATH=./testdata ./app/opencv_test_core
$TEST_RUNNER \
OPENCV_TEST_DATA_PATH=./testdata \
./app/opencv_test_core \
--gtest_filter=*:-Samples.findFile:*filestorage*
- name: Run imgproc test
timeout-minutes: 60
if: ${{ always() && steps.build.outcome == 'success' && steps.deploy.outcome == 'success' }}
run: |
ssh nnplich019 OPENCV_TEST_DATA_PATH=./testdata ./app/opencv_test_imgproc
$TEST_RUNNER \
OPENCV_TEST_DATA_PATH=./testdata \
./app/opencv_test_imgproc
- name: Run calib3d test
timeout-minutes: 60
if: ${{ always() && steps.build.outcome == 'success' && steps.deploy.outcome == 'success' }}
run: |
ssh nnplich019 OPENCV_TEST_DATA_PATH=./testdata ./app/opencv_test_calib3d
$TEST_RUNNER \
OPENCV_TEST_DATA_PATH=./testdata \
./app/opencv_test_calib3d

0 comments on commit c204d5d

Please sign in to comment.