-
Notifications
You must be signed in to change notification settings - Fork 312
63 lines (53 loc) · 1.69 KB
/
manully_test_PYPI.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
59
60
61
62
63
name: Manually Test PyPI
on:
workflow_dispatch
jobs:
build_wheels:
name: Build ${{ matrix.os }} wheels for ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
arch: [ 'x86_64' ]
cibw_python: [ 'cp38*', 'cp39*', 'cp310*' ]
manylinux: [ 'manylinux2014' ]
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- uses: docker/setup-qemu-action@v1
if: runner.os == 'Linux'
name: Set up QEMU
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel
- name: Build wheels for CPython
run: |
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: ${{ matrix.cibw_python }}
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux }}
CIBW_BEFORE_BUILD: "pip install -r requirements.txt"
CIBW_SKIP: "*-musllinux_*"
CIBW_BEFORE_ALL_LINUX: >
yum -y update &&
yum install -y zlib-devel bzip2-devel lzo-devel
- uses: actions/upload-artifact@v2
with:
path: ./dist/*.whl
upload_pypi:
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: ./dist
- uses: pypa/gh-action-pypi-publish@master
with:
skip_existing: true
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/