15
15
16
16
jobs :
17
17
build :
18
- runs-on : ${{ matrix.os }}
18
+ runs-on : ubuntu-20.04
19
19
defaults :
20
20
run :
21
21
shell : bash
22
-
23
22
strategy :
24
23
fail-fast : false
25
24
matrix :
26
- os : [ubuntu-latest]
27
25
python-version : ['3.6']
28
26
platform : [x64]
29
27
with_contrib : [0, 1]
30
28
without_gui : [0, 1]
31
29
build_sdist : [0]
32
-
33
30
env :
34
31
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
35
32
REPO_DIR : .
@@ -40,34 +37,32 @@ jobs:
40
37
MB_ML_VER : 2014
41
38
TRAVIS_BUILD_DIR : ${{ github.workspace }}
42
39
CONFIG_PATH : travis_config.sh
43
- DOCKER_IMAGE : quay.io/opencv-ci/opencv-python-manylinux2014:${PLAT}
44
- USE_CCACHE : 1
40
+ DOCKER_IMAGE : quay.io/opencv-ci/opencv-python-manylinux2014-x86-64:20220628
41
+ USE_CCACHE : 0
45
42
UNICODE_WIDTH : 32
46
43
PLAT : x86_64
47
44
SDIST : ${{ matrix.build_sdist || 0 }}
48
45
ENABLE_HEADLESS : ${{ matrix.without_gui }}
49
46
ENABLE_CONTRIB : ${{ matrix.with_contrib }}
50
-
51
47
steps :
48
+ - name : Cleanup
49
+ run : find . -mindepth 1 -delete
50
+ working-directory : ${{ github.workspace }}
52
51
- name : Checkout
53
52
uses : actions/checkout@v2
54
53
with :
55
54
submodules : false
56
55
fetch-depth : 0
57
-
58
56
- name : Update submodules
59
57
if : github.event_name == 'pull_request'
60
58
run : git submodule update --remote
61
-
62
59
- name : Build a package
63
60
run : source scripts/build.sh
64
-
65
61
- name : Saving all wheels
66
62
uses : actions/upload-artifact@v2
67
63
with :
68
64
name : wheels
69
65
path : wheelhouse/opencv*.whl
70
-
71
66
- name : Saving a wheel accordingly to matrix
72
67
uses : actions/upload-artifact@v2
73
68
with :
@@ -76,64 +71,57 @@ jobs:
76
71
77
72
test :
78
73
needs : [build]
79
- runs-on : ${{ matrix.os }}
74
+ runs-on : ubuntu-20.04
80
75
defaults :
81
76
run :
82
77
shell : bash
83
-
84
78
strategy :
85
79
fail-fast : false
86
80
matrix :
87
- os : [ubuntu-latest]
88
81
python-version : ['3.6', '3.7', '3.8', '3.9', '3.10']
89
82
platform : [x64]
90
83
with_contrib : [0, 1]
91
84
without_gui : [0, 1]
92
85
build_sdist : [0]
93
-
94
86
env :
95
87
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
96
88
MB_PYTHON_VERSION : ${{ matrix.python-version }}
97
89
NP_TEST_DEP : numpy==1.19.4
98
90
NP_TEST_DEP_LATEST : numpy==1.21.2
99
91
CONFIG_PATH : travis_config.sh
100
92
PLAT : x86_64
101
-
102
93
steps :
94
+ - name : Cleanup
95
+ run : find . -mindepth 1 -delete
96
+ working-directory : ${{ github.workspace }}
103
97
- name : Checkout
104
98
uses : actions/checkout@v2
105
99
with :
106
100
submodules : true
107
101
fetch-depth : 0
108
-
109
102
- name : Setup Environment variables
110
103
run : if [ "3.10" == "${{ matrix.python-version }}" ]; then echo "TEST_DEPENDS=$(echo $NP_TEST_DEP_LATEST)" >> $GITHUB_ENV; else echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV; fi
111
-
112
104
- name : Download a wheel accordingly to matrix
113
105
uses : actions/download-artifact@v2
114
106
with :
115
107
name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
116
108
path : wheelhouse/
117
-
118
109
- name : Package installation and run tests
119
110
run : source scripts/install.sh
120
111
121
112
build_sdist :
122
- runs-on : ${{ matrix.os }}
113
+ runs-on : ubuntu-20.04
123
114
defaults :
124
115
run :
125
116
shell : bash
126
-
127
117
strategy :
128
118
fail-fast : false
129
119
matrix :
130
- os : [ubuntu-latest]
131
120
python-version : [3.8]
132
121
platform : [x64]
133
122
with_contrib : [0, 1]
134
123
without_gui : [0, 1]
135
124
build_sdist : [1]
136
-
137
125
env :
138
126
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
139
127
REPO_DIR : .
@@ -146,30 +134,29 @@ jobs:
146
134
NP_TEST_DEP : numpy==1.19.4
147
135
TRAVIS_BUILD_DIR : ${{ github.workspace }}
148
136
CONFIG_PATH : travis_config.sh
149
- DOCKER_IMAGE : quay.io/opencv-ci/opencv-python-manylinux2014:${PLAT}
137
+ DOCKER_IMAGE : quay.io/opencv-ci/opencv-python-manylinux2014-x86-64:20220628
150
138
USE_CCACHE : 1
151
139
UNICODE_WIDTH : 32
152
140
SDIST : ${{ matrix.build_sdist || 0 }}
153
141
ENABLE_HEADLESS : ${{ matrix.without_gui || 0 }}
154
142
ENABLE_CONTRIB : ${{ matrix.with_contrib || 0 }}
155
-
156
143
steps :
144
+ - name : Cleanup
145
+ run : find . -mindepth 1 -delete
146
+ working-directory : ${{ github.workspace }}
157
147
- name : Checkout
158
148
uses : actions/checkout@v2
159
149
with :
160
150
submodules : false
161
151
fetch-depth : 0
162
-
163
152
- name : Update submodules
164
153
if : github.event_name == 'pull_request'
165
154
run : git submodule update --remote
166
-
167
155
- name : Set up Python ${{ matrix.python-version }}
168
156
uses : actions/setup-python@v2
169
157
with :
170
158
python-version : ${{ matrix.python-version }}
171
159
architecture : ${{ matrix.platform }}
172
-
173
160
- name : Build a package
174
161
run : |
175
162
set -e
@@ -182,7 +169,6 @@ jobs:
182
169
# Install and run tests
183
170
set -x
184
171
echo "skipping tests because of sdist"
185
-
186
172
- name : saving artifacts
187
173
uses : actions/upload-artifact@v2
188
174
with :
@@ -192,7 +178,7 @@ jobs:
192
178
test_release_opencv_python :
193
179
if : github.event_name == 'release' && github.event.release.prerelease
194
180
needs : [build, build_sdist, test]
195
- runs-on : ubuntu-latest
181
+ runs-on : ubuntu-20.04
196
182
environment : test-opencv-python-release
197
183
defaults :
198
184
run :
@@ -202,7 +188,6 @@ jobs:
202
188
with :
203
189
name : wheels
204
190
path : wheelhouse/
205
-
206
191
- name : Upload all wheels
207
192
run : |
208
193
python -m pip install twine
@@ -211,7 +196,7 @@ jobs:
211
196
release_opencv_python :
212
197
if : github.event_name == 'release' && !github.event.release.prerelease
213
198
needs : [build, build_sdist, test]
214
- runs-on : ubuntu-latest
199
+ runs-on : ubuntu-20.04
215
200
environment : opencv-python-release
216
201
defaults :
217
202
run :
@@ -221,22 +206,18 @@ jobs:
221
206
with :
222
207
name : wheels
223
208
path : wheelhouse/
224
-
225
209
- name : Upload wheels for opencv_python
226
210
run : |
227
211
python -m pip install twine
228
212
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_PASSWORD }} --skip-existing wheelhouse/opencv_python-* wheelhouse/opencv-python-[^h]*
229
-
230
213
- name : Upload wheels for opencv_contrib_python
231
214
run : |
232
215
python -m pip install twine
233
216
python -m twine upload -u ${{ secrets.OPENCV_CONTRIB_PYTHON_USERNAME }} -p ${{ secrets.OPENCV_CONTRIB_PYTHON_PASSWORD }} --skip-existing wheelhouse/opencv_contrib_python-* wheelhouse/opencv-contrib-python-[^h]*
234
-
235
217
- name : Upload wheels for opencv_python_headless
236
218
run : |
237
219
python -m pip install twine
238
220
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_HEADLESS_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_HEADLESS_PASSWORD }} --skip-existing wheelhouse/opencv_python_headless-* wheelhouse/opencv-python-headless-*
239
-
240
221
- name : Upload wheels for opencv_contrib_python_headless
241
222
run : |
242
223
python -m pip install twine
0 commit comments