-
Notifications
You must be signed in to change notification settings - Fork 16
58 lines (45 loc) · 1.38 KB
/
build_primary_wheels.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build primary wheels
on: [push, pull_request]
jobs:
build_wheels:
name: Build primary wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
cibw_archs: "native"
- os: windows-latest
cibw_archs: "native"
steps:
- uses: actions/checkout@v3
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_SKIP: "cp311-* pp* *-musllinux_*"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: python {package}/test/debug.py && pytest {package}
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
build:
name: Build pure py
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ">=3.6"
- name: Install dependencies
run: pip install -U pip setuptools wheel pytest
- name: Install module
run: FROZENDICT_PURE_PY=1 python setup.py install
- name: Test with pytest
run: pytest
- name: Build package
run: FROZENDICT_PURE_PY=1 python setup.py bdist_wheel
- uses: actions/upload-artifact@v3
with:
path: dist/*.whl