We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9ac734 commit 93298bcCopy full SHA for 93298bc
.github/workflows/lint-n-test.yml
@@ -33,11 +33,20 @@ jobs:
33
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
34
- name: Run tests
35
run: |
36
- pytest
+ pytest --cov-report term --cov=./tests/
37
env:
38
TESTING: True
39
FLASK_DEBUG: False
40
SQLALCHEMY_TRACK_MODIFICATIONS: False
41
SECRET_KEY: abcde
42
APP_SETTINGS: src.config.TestingConfig
43
DATABASE_URL: sqlite:///test.db
44
+ - name: Upload coverage to Codecov
45
+ uses: codecov/codecov-action@v1
46
+ with:
47
+ token: ${{ secrets.CODECOV_TOKEN }}
48
+ file: ./.coverage
49
+ flags: unittests
50
+ env_vars: OS,PYTHON
51
+ name: codecov-umbrella
52
+ fail_ci_if_error: true
0 commit comments