Skip to content

Commit 93298bc

Browse files
authored
Update lint-n-test.yml
1 parent c9ac734 commit 93298bc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/lint-n-test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,20 @@ jobs:
3333
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3434
- name: Run tests
3535
run: |
36-
pytest
36+
pytest --cov-report term --cov=./tests/
3737
env:
3838
TESTING: True
3939
FLASK_DEBUG: False
4040
SQLALCHEMY_TRACK_MODIFICATIONS: False
4141
SECRET_KEY: abcde
4242
APP_SETTINGS: src.config.TestingConfig
4343
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

Comments
 (0)