ci: bump actions to Node 24 runtimes and clean up cibuildwheel config
- Bump actions/upload-artifact to v6, actions/setup-python to v6, actions/checkout to v5, and docker/setup-qemu-action to v4 so all actions run on Node 24 (Node 20 is deprecated on GitHub runners). - Bump pypa/cibuildwheel to v3.4.1 so its bundled actions/setup-python also runs on Node 24. - Drop CIBW_SKIP=pp*: PyPy is no longer enabled by default in cibuildwheel 3.x, so the selector matched nothing and triggered an "Invalid skip selector" warning. - Add CIBW_TEST_SKIP for cp38 macOS arm64 to silence the cibuildwheel warning that the arm64 slice of cp38 universal2 wheels can't be tested (the cp38 installer is x86_64-only).
This commit is contained in:
10
.github/workflows/docs.yml
vendored
10
.github/workflows/docs.yml
vendored
@@ -11,9 +11,9 @@ jobs:
|
|||||||
docs:
|
docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sphinx-build docs build/html
|
sphinx-build docs build/html
|
||||||
- name: Upload documentation artifact
|
- name: Upload documentation artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: html-docs
|
name: html-docs
|
||||||
path: build/html
|
path: build/html
|
||||||
@@ -40,9 +40,9 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
14
.github/workflows/wheels.yml
vendored
14
.github/workflows/wheels.yml
vendored
@@ -43,23 +43,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v4
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v3.1.4
|
uses: pypa/cibuildwheel@v3.4.1
|
||||||
with:
|
with:
|
||||||
output-dir: wheelhouse
|
output-dir: wheelhouse
|
||||||
env:
|
env:
|
||||||
CIBW_ARCHS: ${{ matrix.arch }}
|
CIBW_ARCHS: ${{ matrix.arch }}
|
||||||
# TODO: Disable building PyPy wheels. If the build system gets modernized, this should be
|
|
||||||
# auto-detected based on the Cython dependency.
|
|
||||||
CIBW_SKIP: pp*
|
|
||||||
CIBW_TEST_REQUIRES: pytest pytest-asyncio
|
CIBW_TEST_REQUIRES: pytest pytest-asyncio
|
||||||
CIBW_TEST_COMMAND: pytest {project}
|
CIBW_TEST_COMMAND: pytest {project}
|
||||||
|
# cibuildwheel can build cp38 macOS universal2/arm64 wheels but can't test the
|
||||||
|
# arm64 slice because the cp38 installer is x86_64-only. Silence the warning.
|
||||||
|
CIBW_TEST_SKIP: "cp38-macosx_*:arm64"
|
||||||
# Only needed to make the macosx arm64 build work
|
# Only needed to make the macosx arm64 build work
|
||||||
CMAKE_OSX_ARCHITECTURES: "${{ matrix.arch == 'arm64' && 'arm64' || '' }}"
|
CMAKE_OSX_ARCHITECTURES: "${{ matrix.arch == 'arm64' && 'arm64' || '' }}"
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
||||||
path: ./wheelhouse/*.whl
|
path: ./wheelhouse/*.whl
|
||||||
@@ -73,7 +73,7 @@ jobs:
|
|||||||
- name: Build sdist
|
- name: Build sdist
|
||||||
run: pipx run build --sdist
|
run: pipx run build --sdist
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: cibw-sdist
|
name: cibw-sdist
|
||||||
path: dist/*.tar.gz
|
path: dist/*.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user