-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (44 loc) · 1.27 KB
/
build_test.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
name: builds and ships to test PYPI
on:
push:
tags:
- 'v__*'
jobs:
build:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
environment: TEST_PYPI_API_TOKEN
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
pip install --upgrade pip
pip install --upgrade build
- name: run tests
run: python setup.py test
- name: Install wheels
run: pip install wheel
- name: Build wheels
run: python setup.py sdist bdist_wheel
- name: Postprint
run: echo '--------post---------'; ls dist
- name: Install twine
run: python -m pip install twine
- name: Upload to TestPyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
TWINE_REPOSITORY: testpypi
skip_existing: true
run: python -m twine upload --skip-existing --verbose dist/*
- uses: actions/upload-artifact@v2
with:
path: ./dist/*.whl