Skip to content

Commit d9c6931

Browse files
author
Felix Igelbrink
committed
Merge remote-tracking branch 'origin/master'
2 parents dfd71db + 6241c1f commit d9c6931

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Python package build and publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.8
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install twine flake8 build
20+
- name: Lint with flake8 for syntax errors
21+
run: |
22+
pip install flake8
23+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
24+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
25+
- name: Build Python source distribution
26+
run: |
27+
python -m build --sdist --outdir dist/ .
28+
- name: Publish wheels to PyPI
29+
env:
30+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
31+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
32+
run: |
33+
twine upload dist/*.tag.gz

0 commit comments

Comments
 (0)