diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 86c3e81..5ab351d 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -32,7 +32,16 @@ jobs: - name: Run tests run: | pip install pytest - python -m pytest + pip install pytest-cov + python -m pytest --cov=./ --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + directory: ./coverage/reports/ + files: ./coverage.xml + env_vars: OS,PYTHON + fail_ci_if_error: true + verbose: true - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names