Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Bump pypa/cibuildwheel from 1.11.0 to 2.18.1 #39

Bump pypa/cibuildwheel from 1.11.0 to 2.18.1

Bump pypa/cibuildwheel from 1.11.0 to 2.18.1 #39

Workflow file for this run

name: Wheels
on:
workflow_dispatch:
release:
types:
- published
pull_request:
env:
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND_: "pytest {project}/tests"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
CIBW_MANYLINUX_I686_IMAGE: manylinux1
CIBW_SKIP: pp* cp27-win*
jobs:
build_sdist:
name: Build SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build SDist
run: pipx run --spec build pyproject-build --sdist
- name: Check metadata
run: pipx run twine check dist/*
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz
build_wheels:
name: Wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-10.15, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: pypa/[email protected]
- name: Show files
run: ls -lh wheelhouse
shell: bash
- name: Verify clean directory
run: git diff --exit-code
shell: bash
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
path: wheelhouse/*.whl
upload_all:
name: Upload if release
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/setup-python@v2
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}