Attempt to add coverage.py to testing workflow.
This commit is contained in:
7
.github/workflows/python-package.yml
vendored
7
.github/workflows/python-package.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user