@@ -14,10 +14,14 @@ jobs:
14
14
strategy :
15
15
matrix :
16
16
os :
17
- - ubuntu-latest
18
17
- windows-latest
19
18
- macos-13
20
19
- macos-latest
20
+ include :
21
+ - os : ubuntu-latest
22
+ container : quay.io/pypa/manylinux_2_34_x86_64
23
+ - os : ubuntu-latest
24
+ container : quay.io/pypa/musllinux_1_2_x86_64
21
25
22
26
defaults :
23
27
run :
@@ -27,15 +31,15 @@ jobs:
27
31
SCCACHE_GHA_ENABLED : true
28
32
29
33
runs-on : ${{ matrix.os }}
34
+ container : ${{ matrix.container }}
30
35
31
36
steps :
32
37
- name : Get latest release
33
38
id : latest-release
34
39
run : |
35
- curl -s https://api.github.com/repos/opencv/opencv/releases/latest \
36
- -H "Accept: application/vnd.github.v3+json" \
37
- -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
38
- | jq -r '.tag_name' | tee latest-release.txt
40
+ curl -Ls -o /dev/null -w %{url_effective} \
41
+ https://github.com/opencv/opencv/releases/latest \
42
+ | sed 's#.*tag/\(.*\)$#\1#' > latest-release.txt
39
43
echo "tag=$(cat latest-release.txt)" >> $GITHUB_OUTPUT
40
44
41
45
- uses : actions/checkout@main
@@ -113,6 +117,8 @@ jobs:
113
117
114
118
runs-on : ${{ matrix.os }}
115
119
120
+ container : ${{ startsWith(matrix.os, 'ubuntu') && 'quay.io/pypa/manylinux_2_34_x86_64' || '' }}
121
+
116
122
steps :
117
123
- uses : actions/checkout@main
118
124
@@ -196,7 +202,7 @@ jobs:
196
202
- name : Install dependencies
197
203
run : |
198
204
pdm install -G test --no-self
199
- pdm add dist/*.whl --no-lock
205
+ pdm add -v dist/*.whl --frozen-lockfile
200
206
201
207
- name : Run tests
202
208
run : |
0 commit comments