Skip to content

Commit

Permalink
Parallelize by python version
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Nov 18, 2024
1 parent f3223ee commit 46edc2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
pyver: [cp39, cp310, cp311, cp312, cp313]

steps:
- uses: actions/checkout@v4
Expand All @@ -17,13 +18,14 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_SKIP: pp*
CIBW_BUILD: ${{ matrix.pyver }}-*
CIBW_BEFORE_BUILD: python -c "import shutil ; shutil.copyfile('tools/setup-pypi.cfg','setup.apsw')"
CIBW_TEST_COMMAND: python -m apsw.tests -v
APSW_HEAVY_DURATION: 2

- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os }}
name: dist-${{ matrix.os }}-${{ matrix.pyver }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl


Expand All @@ -32,6 +34,7 @@ jobs:
strategy:
matrix:
arch: [aarch64]
pyver: [cp39, cp310, cp311, cp312, cp313]

steps:
- uses: actions/checkout@v4
Expand All @@ -45,14 +48,15 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_SKIP: pp*
CIBW_BUILD: ${{ matrix.pyver }}-*
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_BEFORE_BUILD: python -c "import shutil ; shutil.copyfile('tools/setup-pypi.cfg','setup.apsw')"
CIBW_TEST_COMMAND: python -m apsw.tests -v
APSW_HEAVY_DURATION: 2

- uses: actions/upload-artifact@v4
with:
name: dist-qemu-${{ matrix.arch }}
name: dist-qemu-${{ matrix.arch }}-${{ matrix.pyver }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl


Expand Down

0 comments on commit 46edc2a

Please sign in to comment.