From 2f8252e9c8d85f9a39a2d46be07a0c4b7fa6dd0b Mon Sep 17 00:00:00 2001 From: Mix <32300164+mnixry@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:14:45 +0800 Subject: [PATCH] :construction_worker: Enhance CI workflow with manylinux container --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42142de..2240ac2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -27,6 +31,7 @@ jobs: SCCACHE_GHA_ENABLED: true runs-on: ${{ matrix.os }} + container: ${{ matrix.container }} steps: - name: Get latest release @@ -113,6 +118,8 @@ jobs: runs-on: ${{ matrix.os }} + container: ${{ startsWith(matrix.os, 'ubuntu') && 'quay.io/pypa/manylinux_2_34_x86_64' || '' }} + steps: - uses: actions/checkout@main @@ -196,7 +203,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: |