Skip to content

Commit

Permalink
Test & package?
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudet committed Sep 14, 2021
1 parent 054430a commit 213b9e9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/lint_and_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Lint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install flake8
run: pip install flake8
- name: Flake8
run: flake8 checkcel --ignore=E501,W504

pypi:
runs-on: ubuntu-latest
needs: lint
name: Deploy release to Pypi
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Python install
run: pip install -U pip setuptools nose build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_KEY }}

0 comments on commit 213b9e9

Please sign in to comment.