2020
2121jobs :
2222 Build :
23- runs-on : ubuntu-20 .04
23+ runs-on : ubuntu-22 .04
2424 defaults :
2525 run :
2626 shell : bash
@@ -64,20 +64,15 @@ jobs:
6464 fetch-depth : 0
6565 - name : Build a package
6666 run : source scripts/build.sh
67- - name : Saving all wheels
68- uses : actions/upload-artifact@v3
69- with :
70- name : wheels
71- path : wheelhouse/opencv*.whl
7267 - name : Saving a wheel accordingly to matrix
73- uses : actions/upload-artifact@v3
68+ uses : actions/upload-artifact@v4
7469 with :
7570 name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
7671 path : wheelhouse/opencv*.whl
7772
7873 Test :
7974 needs : [Build]
80- runs-on : ubuntu-20 .04
75+ runs-on : ubuntu-22 .04
8176 defaults :
8277 run :
8378 shell : bash
@@ -108,15 +103,15 @@ jobs:
108103 - name : Setup Environment variables
109104 run : if [ "3.10" == "${{ matrix.python-version }}" -o "3.11" == "${{ matrix.python-version }}" -o "3.12" == "${{ matrix.python-version }}" -o "3.13" == "${{ 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
110105 - name : Download a wheel accordingly to matrix
111- uses : actions/download-artifact@v3
106+ uses : actions/download-artifact@v4
112107 with :
113108 name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
114109 path : wheelhouse/
115110 - name : Package installation and run tests
116111 run : source scripts/install.sh
117112
118113 Build_sdist :
119- runs-on : ubuntu-20 .04
114+ runs-on : ubuntu-22 .04
120115 defaults :
121116 run :
122117 shell : bash
@@ -177,21 +172,21 @@ jobs:
177172 set -x
178173 echo "skipping tests because of sdist"
179174 - name : saving artifacts
180- uses : actions/upload-artifact@v3
175+ uses : actions/upload-artifact@v4
181176 with :
182- name : wheels
177+ name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
183178 path : dist/opencv*.tar.gz
184179
185180 Release_rolling :
186181 if : ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
187182 needs : [Build, Test]
188- runs-on : ubuntu-20 .04
183+ runs-on : ubuntu-22 .04
189184 environment : opencv-python-rolling-release
190185 defaults :
191186 run :
192187 shell : bash
193188 steps :
194- - uses : actions/download-artifact@v3
189+ - uses : actions/download-artifact@v4
195190 with :
196191 name : wheels
197192 path : wheelhouse/
@@ -215,13 +210,13 @@ jobs:
215210 Pre-release :
216211 if : github.event_name == 'release' && github.event.release.prerelease
217212 needs : [Build, Build_sdist, Test]
218- runs-on : ubuntu-20 .04
213+ runs-on : ubuntu-22 .04
219214 environment : test-opencv-python-release
220215 defaults :
221216 run :
222217 shell : bash
223218 steps :
224- - uses : actions/download-artifact@v3
219+ - uses : actions/download-artifact@v4
225220 with :
226221 name : wheels
227222 path : wheelhouse/
@@ -233,13 +228,13 @@ jobs:
233228 Release :
234229 if : github.event_name == 'release' && !github.event.release.prerelease
235230 needs : [Build, Build_sdist, Test]
236- runs-on : ubuntu-20 .04
231+ runs-on : ubuntu-22 .04
237232 environment : opencv-python-release
238233 defaults :
239234 run :
240235 shell : bash
241236 steps :
242- - uses : actions/download-artifact@v3
237+ - uses : actions/download-artifact@v4
243238 with :
244239 name : wheels
245240 path : wheelhouse/
0 commit comments