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

Commit

Permalink
👷 Enhance CI workflow with manylinux container
Browse files Browse the repository at this point in the history
  • Loading branch information
mnixry committed Jan 3, 2025
1 parent 33783ea commit 7be3ce1
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ jobs:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-13
- macos-latest
include:
- os: ubuntu-latest
container: quay.io/pypa/manylinux_2_34_x86_64
- os: ubuntu-latest
container: quay.io/pypa/musllinux_1_2_x86_64

defaults:
run:
Expand All @@ -27,15 +31,15 @@ jobs:
SCCACHE_GHA_ENABLED: true

runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}

steps:
- name: Get latest release
id: latest-release
run: |
curl -s https://api.github.com/repos/opencv/opencv/releases/latest \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
| jq -r '.tag_name' | tee latest-release.txt
curl -Ls -o /dev/null -w %{url_effective} \
https://github.com/opencv/opencv/releases/latest \
| sed 's#.*tag/\(.*\)$#\1#' > latest-release.txt
echo "tag=$(cat latest-release.txt)" >> $GITHUB_OUTPUT
- uses: actions/checkout@main
Expand Down Expand Up @@ -113,6 +117,8 @@ jobs:

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

container: ${{ startsWith(matrix.os, 'ubuntu') && 'quay.io/pypa/manylinux_2_34_x86_64' || '' }}

steps:
- uses: actions/checkout@main

Expand Down Expand Up @@ -196,7 +202,7 @@ jobs:
- name: Install dependencies
run: |
pdm install -G test --no-self
pdm add dist/*.whl --no-lock
pdm add -v dist/*.whl --frozen-lockfile
- name: Run tests
run: |
Expand Down

0 comments on commit 7be3ce1

Please sign in to comment.