Mercurial > public > bitcaviar-plus
changeset 25:c75ee64c812c
add tests job
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 21 Nov 2021 18:38:18 +0100 |
parents | 139c77ea99b7 |
children | 7d3cc440e578 |
files | .github/workflows/python-publish.yml |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.github/workflows/python-publish.yml Sun Nov 14 17:36:43 2021 +0100 +++ b/.github/workflows/python-publish.yml Sun Nov 21 18:38:18 2021 +0100 @@ -19,6 +19,16 @@ run: | python -m pip install --upgrade pip pip install build + python -m pip install flake8 + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test + run: python -m unittest discover - name: Build package run: python -m build - name: Publish package