Skip to content

Commit 213b9e9

Browse files
committed
Test & package?
1 parent 054430a commit 213b9e9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Lint
2+
on: [push]
3+
jobs:
4+
lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v2
9+
- uses: actions/setup-python@v1
10+
with:
11+
python-version: 3.7
12+
- name: Install flake8
13+
run: pip install flake8
14+
- name: Flake8
15+
run: flake8 checkcel --ignore=E501,W504
16+
17+
pypi:
18+
runs-on: ubuntu-latest
19+
needs: lint
20+
name: Deploy release to Pypi
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
- uses: actions/setup-python@v1
25+
with:
26+
python-version: 3.7
27+
- name: Python install
28+
run: pip install -U pip setuptools nose build
29+
- name: Build a binary wheel and a source tarball
30+
run: python -m build --sdist --wheel --outdir dist/ .
31+
- name: Publish distribution 📦 to PyPI
32+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
33+
uses: pypa/gh-action-pypi-publish@master
34+
with:
35+
user: __token__
36+
password: ${{ secrets.PYPI_API_KEY }}

0 commit comments

Comments
 (0)