Mercurial > public > bitcaviar-plus
comparison .github/workflows/python-publish.yml @ 28:30535f42d0ff
refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Wed, 02 Feb 2022 21:16:10 +0100 |
parents | c75ee64c812c |
children |
comparison
equal
deleted
inserted
replaced
27:348a07008703 | 28:30535f42d0ff |
---|---|
25 run: | | 25 run: | |
26 # stop the build if there are Python syntax errors or undefined names | 26 # stop the build if there are Python syntax errors or undefined names |
27 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | 27 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics |
28 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | 28 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
29 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | 29 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
30 - name: Test | 30 - name: Testing units |
31 run: python -m unittest discover | 31 run: python -m unittest tests.test_unit |
32 - name: Build package | 32 - name: Build package |
33 run: python -m build | 33 run: python -m build |
34 - name: Publish package | 34 - name: Publish package |
35 uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | 35 uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 |
36 with: | 36 with: |