-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update codecov report generation step and .coveragerc
- Loading branch information
1 parent
b1ccb94
commit 6ba5b8e
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|