Attempt to add coverage.py to testing workflow.

This commit is contained in:
Nathan Baker
2020-06-20 07:49:58 -07:00
parent e021e491cb
commit 52bbd2e887

View File

@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
name: Test coverage
on:
push:
@@ -27,6 +27,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel
pip install flake8 pytest
pip install coverage
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
@@ -36,5 +37,5 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
python -m pytest
coverage run -m pytest
coverage report -m