Skip to content

upgraded cibw

upgraded cibw #10

Workflow file for this run

name: Build and publish wheels
on:
push:
branches:
- main # Change this to the main branch name, or use 'master' if that's the default branch.
jobs:
build:
name: Wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
# Used to push the built wheels
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: "3.x"
- name: Build wheels
uses: pypa/cibuildwheel@2.16.5
env:
CIBW_PRERELEASE_PYTHONS: True
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_WINDOWS: AMD64
CIBW_ARCHS_LINUX: x86_64 aarch64
CIBW_TEST_REQUIRES: pytest numpy
CIBW_TEST_COMMAND: pytest {project}/tests/test.py
CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64"
- name: Install Twine
run: python -m pip install twine
- name: Publish to PyPI
if: github.event_name == 'push'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload wheelhouse/*