Skip to content

Commit

Permalink
add some coverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudotexe committed Feb 28, 2020
1 parent 921fb84 commit abec8e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
pragma: no cover
def __repr__
if self\.debug
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
pytest --cov=./ --cov-report=xml --cov-config=.coveragerc
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
Expand Down

0 comments on commit abec8e5

Please sign in to comment.