-
Notifications
You must be signed in to change notification settings - Fork 13
74 lines (71 loc) · 2.15 KB
/
debug-wheel-build.yaml
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
67
68
69
70
71
72
73
74
name: debug-wheel-build
on:
push:
branches:
- 'debug/wheel**'
jobs:
build-wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9']
os: [ubuntu-20.04, windows-2019, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel twine
pip install coverage pytest pytest-cov -U
pip install Cython --install-option="--no-cython-compile"
pip install --only-binary=numpy,scipy,matplotlib numpy scipy matplotlib -U
pip install -r test-requirements.txt
pip install -e .
python setup.py build sdist
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
run: python -m cibuildwheel --output-dir dist/
env:
CIBW_BUILD: "cp38* cp39* cp310* cp311*"
CIBW_SKIP: "*_i686 *win32 *musllinux* pp*"
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"
CIBW_TEST_REQUIRES: "pytest"
CIBW_BUILD_VERBOSITY: 5
CIBW_ARCHS: "auto"
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: dist
path: |
dist/*.whl
dist/*.tar.gz
dist/*.zip
retention-days: 7
publish-wheels:
needs: [build-wheels]
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.9']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/[email protected]
with:
name: dist
path: dist/
- name: "Publish"
env:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
TWINE_USERNAME: __token__
run: |
ls -l dist/*
# twine upload dist/*.whl dist/*.tar.gz