# HG changeset patch # User Dennis Concepcion Martin # Date 1637516298 -3600 # Node ID c75ee64c812ca9c1f013c2e6acbffa6801e1550d # Parent 139c77ea99b7a4ac14d7330de484e336ed4e9acd add tests job diff -r 139c77ea99b7 -r c75ee64c812c .github/workflows/python-publish.yml --- 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