Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Commit 7be3ce1

Browse files
committed
👷 Enhance CI workflow with manylinux container
1 parent 33783ea commit 7be3ce1

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ jobs:
1414
strategy:
1515
matrix:
1616
os:
17-
- ubuntu-latest
1817
- windows-latest
1918
- macos-13
2019
- 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
2125

2226
defaults:
2327
run:
@@ -27,15 +31,15 @@ jobs:
2731
SCCACHE_GHA_ENABLED: true
2832

2933
runs-on: ${{ matrix.os }}
34+
container: ${{ matrix.container }}
3035

3136
steps:
3237
- name: Get latest release
3338
id: latest-release
3439
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
3943
echo "tag=$(cat latest-release.txt)" >> $GITHUB_OUTPUT
4044
4145
- uses: actions/checkout@main
@@ -113,6 +117,8 @@ jobs:
113117

114118
runs-on: ${{ matrix.os }}
115119

120+
container: ${{ startsWith(matrix.os, 'ubuntu') && 'quay.io/pypa/manylinux_2_34_x86_64' || '' }}
121+
116122
steps:
117123
- uses: actions/checkout@main
118124

@@ -196,7 +202,7 @@ jobs:
196202
- name: Install dependencies
197203
run: |
198204
pdm install -G test --no-self
199-
pdm add dist/*.whl --no-lock
205+
pdm add -v dist/*.whl --frozen-lockfile
200206
201207
- name: Run tests
202208
run: |

0 commit comments

Comments
 (0)