Skip to content

Commit a9d7c67

Browse files
author
Joel Collins
committed
Add codecov
1 parent fa9041a commit a9d7c67

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,12 @@ jobs:
4141
run: poetry run black . --check
4242

4343
- name: Test with pytest
44-
run: poetry run pytest --cov-report term-missing --cov=labthings ./tests
44+
run: poetry run pytest --cov-report --cov-report=xml term-missing --cov=labthings ./tests
45+
46+
- name: Upload coverage to Codecov
47+
uses: codecov/codecov-action@v1
48+
with:
49+
file: ./coverage.xml
50+
flags: unittests
51+
name: codecov-umbrella
52+
fail_ci_if_error: true

0 commit comments

Comments
 (0)