Skip to content

old workflow

old workflow #57

Workflow file for this run

name: Build & Test
on:
schedule:
- cron: '0 1 * * 4' # Runs every Thursday at 1 AM (UTC)
pull_request:
push:
branches:
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build_wheels:
name: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-12, windows-2022]
python: [cp310, cp311, cp312, cp313]
arch: [x86_64, aarch64, AMD64, arm64]
# Included archs:
# Ubuntu: x86_64, aarch64
# MacOS: x86_64, arm64
# Windows: AMD64
exclude:
- os: ubuntu-20.04
arch: AMD64
- os: ubuntu-20.04
arch: arm64
- os: macos-12
arch: aarch64
- os: macos-12
arch: AMD64
- os: windows-2022
arch: x86_64
- os: windows-2022
arch: aarch64
- os: windows-2022
arch: arm64
fail-fast: false
steps:
- name: Set up QEMU
if: matrix.arch == 'aarch64'
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- uses: actions/checkout@v3
- name: Build and test wheels
uses: pypa/[email protected] # You may need to update to get latest Python versions
env:
CIBW_BEFORE_BUILD: "pip install --upgrade pip && pip install -r requirements-dev.txt && pip list"
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: "${{ matrix.python }}*"
CIBW_SKIP: "*musllinux*"
CIBW_BEFORE_TEST: "pip install --upgrade pip && pip install -r requirements-dev.txt && pip list"
CIBW_TEST_COMMAND: "pytest {project}/tests"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl