Skip to content

Commit ec81482

Browse files
authored
Skip unstable tests in 5.x too. (#90)
1 parent 0d1409d commit ec81482

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

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

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ jobs:
5050
timeout-minutes: 60
5151
if: ${{ github.event.repository.name == 'ci-gha-workflow' }}
5252
run: echo "TARGET_BRANCH_NAME=5.x" >> $GITHUB_ENV
53+
- name: Setup test environment
54+
if: ${{ github.event.repository.name != 'ci-gha-workflow' }}
55+
run: |
56+
echo "EXTRA_GTEST_OPTIONS=--skip_unstable=1" >> $GITHUB_ENV
5357
- name: PR info
5458
timeout-minutes: 60
5559
run: |
@@ -117,71 +121,71 @@ jobs:
117121
- name: Accuracy:3d
118122
timeout-minutes: 60
119123
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
120-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_3d --test_threads=${{ env.PARALLEL_JOBS }}
124+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_3d --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
121125
- name: Accuracy:calib
122126
timeout-minutes: 60
123127
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
124-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_calib --test_threads=${{ env.PARALLEL_JOBS }}
128+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_calib --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
125129
- name: Accuracy:core
126130
timeout-minutes: 60
127131
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
128-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_core --test_threads=${{ env.PARALLEL_JOBS }}
132+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_core --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
129133
- name: Accuracy:dnn
130134
timeout-minutes: 60
131135
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
132-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_dnn --test_threads=${{ env.PARALLEL_JOBS }}
136+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_dnn --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
133137
- name: Accuracy:features2d
134138
timeout-minutes: 60
135139
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
136-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_features2d --test_threads=${{ env.PARALLEL_JOBS }}
140+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_features2d --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
137141
- name: Accuracy:flann
138142
timeout-minutes: 60
139143
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
140-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_flann --test_threads=${{ env.PARALLEL_JOBS }}
144+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_flann --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
141145
- name: Accuracy:gapi
142146
timeout-minutes: 60
143147
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
144-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_gapi --test_threads=${{ env.PARALLEL_JOBS }}
148+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_gapi --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
145149
- name: Accuracy:highgui
146150
timeout-minutes: 60
147151
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
148-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_highgui --test_threads=${{ env.PARALLEL_JOBS }}
152+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_highgui --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
149153
- name: Accuracy:imgcodecs
150154
timeout-minutes: 60
151155
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
152-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_imgcodecs --test_threads=${{ env.PARALLEL_JOBS }}
156+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_imgcodecs --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
153157
- name: Accuracy:imgproc
154158
timeout-minutes: 60
155159
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
156-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_imgproc --test_threads=${{ env.PARALLEL_JOBS }}
160+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_imgproc --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
157161
- name: Accuracy:ml
158162
timeout-minutes: 60
159163
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
160-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_ml --test_threads=${{ env.PARALLEL_JOBS }}
164+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_ml --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
161165
- name: Accuracy:objdetect
162166
timeout-minutes: 60
163167
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
164-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_objdetect --test_threads=${{ env.PARALLEL_JOBS }}
168+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_objdetect --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
165169
- name: Accuracy:photo
166170
timeout-minutes: 60
167171
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
168-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_photo --test_threads=${{ env.PARALLEL_JOBS }}
172+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_photo --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
169173
- name: Accuracy:stereo
170174
timeout-minutes: 60
171175
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
172-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_stereo --test_threads=${{ env.PARALLEL_JOBS }}
176+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_stereo --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
173177
- name: Accuracy:stitching
174178
timeout-minutes: 60
175179
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
176-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_stitching --test_threads=${{ env.PARALLEL_JOBS }}
180+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_stitching --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
177181
- name: Accuracy:video
178182
timeout-minutes: 60
179183
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
180-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_video --test_threads=${{ env.PARALLEL_JOBS }}
184+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_video --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
181185
- name: Accuracy:videoio
182186
timeout-minutes: 60
183187
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
184-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_videoio --test_threads=${{ env.PARALLEL_JOBS }}
188+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_videoio --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
185189
- name: Performance:3d
186190
timeout-minutes: 60
187191
if: ${{ always() && steps.build-opencv.outcome == 'success' }}

0 commit comments

Comments
 (0)