Skip to content

Commit 1d773af

Browse files
committed
code coverage report upload added.
1 parent a0d90f7 commit 1d773af

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,11 @@ jobs:
2626
- name: Run linter
2727
run: pipenv run flake8 .
2828
- name: Run tests
29-
run: PYTHONPATH="$(pwd):$PYTHONPATH" pipenv run py.test --cov=crontools tests
29+
run: PYTHONPATH="$(pwd):$PYTHONPATH" pipenv run py.test --cov=crontools --cov-report=xml tests
30+
- name: Upload coverage to Codecov
31+
uses: codecov/codecov-action@v1
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
files: ./coverage.xml
35+
flags: unittests
36+
fail_ci_if_error: true

0 commit comments

Comments
 (0)