Skip to content

Commit

Permalink
use more up-to-date GH actions and explicitly enable python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Oct 18, 2024
1 parent a8d7007 commit b2cd017
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
run:
working-directory: ${{ env.PACKAGE_DIR }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
Expand All @@ -37,9 +37,10 @@ jobs:
run: python setup.py sdist
- name: Check metadata
run: twine check dist/*.tar.gz
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: ${{ env.PACKAGE_DIR }}/dist/*.tar.gz
name: sdist

build_wheels:
name: ${{ matrix.type }} ${{ matrix.arch }} on ${{ matrix.os }}
Expand Down Expand Up @@ -71,11 +72,11 @@ jobs:
build: "cp310-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010
CIBW_MANYLINUX_I686_IMAGE: manylinux2010
# the manylinux2014 image also contains python 3.11 and 3.12
# the manylinux2014 image also contains python 3.11, 3.12 and 3.13
- os: ubuntu-latest
arch: auto
type: manylinux2014
build: "cp311-* cp312-*"
build: "cp311-* cp312-* cp313-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_I686_IMAGE: manylinux2014

Expand All @@ -89,11 +90,11 @@ jobs:
build: "*"
skip: "pp*"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
Expand All @@ -106,23 +107,24 @@ jobs:
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }}
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.CIBW_MANYLINUX_X86_64_IMAGE }}
CIBW_ARCHS: ${{ matrix.arch }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: wheelhouse/*.whl
name: wheels-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.type }}

build_arch_wheels:
name: py${{ matrix.python }} on ${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
matrix:
# aarch64 uses qemu so it's slow, build each py version in parallel jobs
python: [36, 37, 38, 39, 310, 311, 312]
python: [36, 37, 38, 39, 310, 311, 312, 313]
arch: [aarch64, ppc64le]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- uses: docker/setup-qemu-action@v1.2.0
- uses: docker/setup-qemu-action@v3.2.0
with:
platforms: all
- name: Install dependencies
Expand All @@ -135,6 +137,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
path: wheelhouse/*.whl
name: wheels-${{ matrix.arch }}-${{ matrix.python }}

deploy:
name: Upload if release
Expand All @@ -143,10 +146,10 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
merge-multiple: true

- uses: pypa/[email protected]
with:
Expand Down

0 comments on commit b2cd017

Please sign in to comment.