Skip to content

Update test.yml to run on all push/pull request #133

Update test.yml to run on all push/pull request

Update test.yml to run on all push/pull request #133

Workflow file for this run

name: Build Wheels
on:
push:
tag:
- '*'
branches:
- main
pull_request:
branches:
- main
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
CIBW_SKIP: "*-win32 *-manylinux_i686 *musllinux* cp39-win_arm64 cp310-win_arm64"
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macOS-13, macOS-14]
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Build wheels
uses: pypa/cibuildwheel@v3.1.4
# to supply options, put them in 'env', like:
env:
CIBW_SKIP: "*-win32 *-manylinux_i686 *musllinux* cp39-win_arm64 cp310-win_arm64"
CIBW_TEST_REQURES: pytest, numpy
CIBW_BEFORE_TEST: python -m pip install pytest
CIBW_TEST_COMMAND: python -m pytest {package}/tests
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl