Change github test workflow: add coverage and bandit

This commit is contained in:
Dmitri Bogomolov 2021-08-02 15:27:00 +03:00
parent 737b529298
commit a132556233
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -25,7 +25,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install wheel
pip install flake8 pylint
pip install bandit flake8 pylint
pip install -r requirements.txt
python setup.py install
- name: Lint
@ -35,7 +35,10 @@ jobs:
flake8 minode --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 minode --count --statistics
pylint minode --exit-zero --rcfile=tox.ini
bandit -r --exit-zero -x tests minode
- name: Test
run: |
export PYTHONWARNINGS=all
python -bm tests
coverage run -a -m tests
- name: Summary
run: coverage report