Skip to content

Commit 0419959

Browse files
committed
CI: added coverage information
1 parent c540e0e commit 0419959

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,10 @@ jobs:
3232
run: poetry install
3333

3434
- name: Test with pytest
35-
run: poetry run pytest
35+
run: poetry run pytest --cov=./ --cov-report=xml
36+
37+
- name: Upload coverage to Codecov
38+
uses: codecov/codecov-action@v1
39+
with:
40+
file: ./coverage.xml
41+
flags: unittests

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ pylint = "^2.6.0"
2121
mkdocs = "^1.1.2"
2222
ipython = "^7.18.1"
2323
ipykernel = "^5.3.4"
24+
coverage = "^5.3"
25+
pytest-cov = "^2.10.1"
2426

2527
[build-system]
2628
requires = ["poetry>=0.12"]

0 commit comments

Comments
 (0)