-
Notifications
You must be signed in to change notification settings - Fork 19
39 lines (31 loc) · 1.16 KB
/
wheeltest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI build wheels
# Build on every checkin
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Need to be PIP517 build in order to avoid setuptools bug - https://github.com/pypa/cibuildwheel/issues/813
# I dunno enough about the work involved in that - sorry!
# os: [ubuntu-latest, windows-latest, macos-11, macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'
- name: Build wheels
uses: pypa/[email protected]
env:
# I can't get windows tests to work, but at least here's linux testing the built wheels
CIBW_TEST_REQUIRES: pytest
CIBW_ARCHS_MACOS: 'x86_64 arm64'
CIBW_BUILD: 'cp39-* cp310-* cp311-* cp312-* cp313-*'
CIBW_TEST_COMMAND_LINUX: "cd {project} && pytest -v tests/"
- uses: actions/upload-artifact@v4
with:
name: pypi_artifacts
path: ./wheelhouse/*.whl