diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 3b6b0d5a..1aadc4b6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest + pip install flake8 pytest-cov pip install -e . if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi - name: Lint with flake8 @@ -37,4 +37,9 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --extend-ignore=C901,E261,E302,E305,F401 - name: Test with pytest run: | - pytest + pytest --cov . + - name: Upload coverage reports to Codecov + run: | + curl -Os https://uploader.codecov.io/latest/linux/codecov + chmod +x codecov + ./codecov -t ${CODECOV_TOKEN} diff --git a/tests/unit/test_simvue.py b/tests/unit/test_simvue.py index 50e91181..5914ec3e 100644 --- a/tests/unit/test_simvue.py +++ b/tests/unit/test_simvue.py @@ -8,6 +8,7 @@ import matplotlib.pyplot as plt import pandas as pd + def test_suppress_errors(): """ Check that errors are surpressed