Skip to content

Commit 5159824

Browse files
author
jguerreiro
committed
fix(ci): add code coverage action
1 parent faae908 commit 5159824

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/test-lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ jobs:
4747
run: |
4848
pipenv run coverage run --source pygitguardian -m nose tests
4949
pipenv run coverage report --fail-under=80
50+
pipenv run coverage xml
51+
- uses: codecov/codecov-action@v1
52+
with:
53+
file: ./coverage.xml
54+
flags: unittests
55+
name: codecov-umbrella
56+
fail_ci_if_error: false
5057

5158
release:
5259
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pip-log.txt
2323
# Unit test / coverage reports
2424
.coverage
2525
.tox
26+
coverage.xml
2627
nosetests.xml
2728

2829
# Translations

0 commit comments

Comments
 (0)