File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -190,18 +190,25 @@ jobs:
190
190
cd ${{ github.workspace }}/tests
191
191
&python -m pip install --user --no-warn-script-location (ls "../wheelhouse/opencv*.whl")
192
192
if ($LastExitCode -ne 0) {throw $LastExitCode}
193
+ # Copy DLL next to cv2.pyd (Python 3.8+ needs this)
194
+ $cv2_path = python -c "import cv2; import os; print(os.path.dirname(cv2.__file__))"
195
+ Copy-Item "${{ github.workspace }}\wheelhouse\libopenblas.dll" "$cv2_path\libopenblas.dll"
193
196
python get_build_info.py
194
197
shell : powershell
195
198
env :
196
199
PATH : ${{ github.workspace }}\wheelhouse;${{ env.PATH }}
197
- PYTHONPATH : ${{ github.workspace }}\wheelhouse;${{ env.PYTHONPATH }}
198
200
- name : Run tests
199
201
run : |
202
+ # Find cv2 install path
203
+ $cv2_path = python -c "import cv2; import os; print(os.path.dirname(cv2.__file__))"
204
+
205
+ # Copy DLL next to cv2.pyd
206
+ Copy-Item "${{ github.workspace }}\wheelhouse\libopenblas.dll" "$cv2_path\libopenblas.dll"
207
+
200
208
cd ${{ github.workspace }}/opencv
201
209
python modules\python\test\test.py -v --repo .
202
210
env :
203
211
PATH : ${{ github.workspace }}\wheelhouse;${{ env.PATH }}
204
- PYTHONPATH : ${{ github.workspace }}\wheelhouse;${{ env.PYTHONPATH }}
205
212
206
213
- name : Pylint test
207
214
run : |
You can’t perform that action at this time.
0 commit comments