Skip to content

Commit 3728c6f

Browse files
authored
Merge pull request #54 from simvue-io/23-code-coverage
23 code coverage
2 parents 528f583 + ea2a25e commit 3728c6f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/python-app.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install flake8 pytest
29+
pip install flake8 pytest-cov
3030
pip install -e .
3131
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
3232
- name: Lint with flake8
@@ -37,4 +37,9 @@ jobs:
3737
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --extend-ignore=C901,E261,E302,E305,F401
3838
- name: Test with pytest
3939
run: |
40-
pytest
40+
pytest --cov .
41+
- name: Upload coverage reports to Codecov
42+
run: |
43+
curl -Os https://uploader.codecov.io/latest/linux/codecov
44+
chmod +x codecov
45+
./codecov -t ${CODECOV_TOKEN}

tests/unit/test_simvue.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import matplotlib.pyplot as plt
99
import pandas as pd
1010

11+
1112
def test_suppress_errors():
1213
"""
1314
Check that errors are surpressed

0 commit comments

Comments
 (0)