-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (27 loc) · 890 Bytes
/
test.yml
File metadata and controls
33 lines (27 loc) · 890 Bytes
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
name: tests
on:
push:
tags:
- 'v*' # trigger only when pushing a tag starting with "v" (e.g., v1.0.0)
branches:
- main # only when the tag is on the main branch
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] #, windows-latest, macos-13, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.21.3
- name: Build and test wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BUILD: cp311-manylinux*
CIBW_ARCHS_LINUX: x86_64
CIBW_TEST_REQUIRES: pytest numpy pandas scipy
CIBW_TEST_COMMAND: "pytest {project}/tests"