remove pp for macos #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Runs CI tests and generates wheels on the following platforms: | |
# | |
# * Linux (py2 and py3) | |
# * macOS (py2 and py3) | |
# * Windows (py3, py2 is done by appveyor) | |
# | |
# Useful URLs: | |
# * https://github.com/pypa/cibuildwheel | |
# * https://github.com/actions/checkout | |
# * https://github.com/actions/setup-python | |
# * https://github.com/actions/upload-artifact | |
on: [push, pull_request] | |
name: build | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.sha || '' }} | |
cancel-in-progress: true | |
jobs: | |
# Linux + macOS + Windows Python 3 | |
py3: | |
name: py3-${{ matrix.os }}-${{ startsWith(matrix.os, 'windows') && matrix.archs || 'all' }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-22.04 | |
archs: "x86_64" | |
- os: macos-12 | |
archs: "x86_64" | |
- os: windows-2019 | |
archs: "AMD64" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Create wheels + run tests | |
uses: pypa/[email protected] | |
env: | |
CIBW_ARCHS: "${{ matrix.archs }}" | |
CIBW_PRERELEASE_PYTHONS: True | |
CIBW_SKIP: "*musllinux* pp* pp31*" | |
CIBW_BUILD_VERBOSITY: 1 | |
CIBW_TEST_COMMAND: > | |
python -c "import psutil" | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: wheelhouse | |
check-dist: | |
needs: [py3] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: wheels | |
path: wheelhouse | |
- run: | | |
python scripts/internal/print_hashes.py wheelhouse/ | |
pipx run twine check --strict wheelhouse/* | |
pipx run abi3audit --verbose --strict wheelhouse/*-abi3-*.whl |