Skip to content

Commit

Permalink
update codecov report generation step and .coveragerc
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaypatil96 committed Dec 7, 2021
1 parent b1ccb94 commit 6ba5b8e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
branch = True
source = linkml_runtime

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
13 changes: 11 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,20 @@ jobs:
#----------------------------------------------
- name: Run tests
run: poetry run python -m unittest discover

#----------------------------------------------
# coverage report
#----------------------------------------------
- name: generate coverage report
- name: Generate coverage results
run: |
poetry run coverage run
poetry run coverage xml
poetry run coverage report -m
#----------------------------------------------
# upload coverage results
#----------------------------------------------
- name: Generate coverage report
uses: codecov/[email protected]
with:
name: codecov-results-${{ matrix.python-version }}
Expand Down

0 comments on commit 6ba5b8e

Please sign in to comment.