@@ -113,37 +113,13 @@ jobs:
113
113
114
114
python setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=%cd%\\wheelhouse -v
115
115
shell : cmd
116
-
117
- - name : Copy OpenBLAS DLL to wheelhouse
118
- run : |
119
- copy openblas\bin\libopenblas.dll wheelhouse\
120
- shell : cmd
121
- - name : Inject libopenblas.dll into .whl
122
- run : |
123
- for %%F in (wheelhouse\opencv_python*.whl) do (
124
- echo Processing %%F
125
- mkdir tmpwhl
126
- cd tmpwhl
127
- tar -xf ..\%%F
128
-
129
- echo Copying libopenblas.dll into cv2/
130
- copy ..\wheelhouse\libopenblas.dll cv2\
131
-
132
- echo Repacking wheel
133
- del ..\%%F
134
- tar -cf ..\%%F *
135
116
136
- cd ..
137
- rmdir /s /q tmpwhl
138
- )
139
- shell : cmd
140
117
- name : Saving all wheels
141
118
uses : actions/upload-artifact@v4
142
119
with :
143
120
name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
144
121
path : |
145
122
wheelhouse/opencv*
146
- wheelhouse/libopenblas.dll
147
123
148
124
Test :
149
125
needs : [Build]
@@ -187,40 +163,20 @@ jobs:
187
163
name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
188
164
path : wheelhouse/
189
165
190
- - name : Show contents of wheelhouse
191
- run : |
192
- echo "== wheelhouse contents =="
193
- dir /b wheelhouse
194
- shell : cmd
195
166
196
- - name : Add OpenBLAS DLL to PATH
197
- run : |
198
- set "PATH=${{ github.workspace }}\wheelhouse;%PATH%"
199
- echo "== PATH =="
200
- echo %PATH%
201
- echo "== Checking for libopenblas.dll =="
202
- where libopenblas.dll || (
203
- echo "ERROR: libopenblas.dll not found!" & exit /b 1
204
- )
205
- shell : cmd
206
167
207
168
- name : Package installation
208
169
run : |
209
170
cd ${{ github.workspace }}/tests
210
171
&python -m pip install --user --no-warn-script-location (ls "../wheelhouse/opencv*.whl")
211
172
if ($LastExitCode -ne 0) {throw $LastExitCode}
212
- $cv2_path = $(python -c "import cv2, os; print(os.path.dirname(cv2.__file__))")
213
- echo $cv2_path
214
173
python get_build_info.py
215
174
shell : powershell
216
- env :
217
- PATH : ${{ github.workspace }}\wheelhouse;${{ env.PATH }}
175
+
218
176
- name : Run tests
219
177
run : |
220
178
cd ${{ github.workspace }}/opencv
221
179
python modules\python\test\test.py -v --repo .
222
- env :
223
- PATH : ${{ github.workspace }}\wheelhouse;${{ env.PATH }}
224
180
225
181
- name : Pylint test
226
182
run : |
0 commit comments