-
Notifications
You must be signed in to change notification settings - Fork 495
66 lines (52 loc) · 1.61 KB
/
Copy pathbuild.yaml
File metadata and controls
66 lines (52 loc) · 1.61 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build Status
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- 3.11
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
version: ${{ matrix.python-version }}
- name: Install dependencies
run: make develop
- name: Lint
run: make lint
- name: Test
run: make test
- name: Package and check
run: make dist
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Set up QEMU
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
with:
platforms: all
if: runner.os == 'Linux'
- name: Build wheels
run: python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "cp311-*"
CIBW_BEFORE_BUILD: "python -c \"from pathlib import Path; [p.unlink() for pattern in ('*.pyd', '*.so', '*.dylib') for p in Path('bt').glob(pattern)]\""
- name: Check Wheels
run: twine check dist/*
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
path: ./dist/*.whl
name: wheel-test-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }}