Skip to content

Commit

Permalink
Add coverage and codecov integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ricklupton committed Apr 7, 2019
1 parent 45711b1 commit 5f8af93
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .coveragerc
@@ -0,0 +1,13 @@
[run]
branch = True
source = floweaver

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
test/*
7 changes: 4 additions & 3 deletions .travis.yml
Expand Up @@ -7,7 +7,8 @@ matrix:
- python: 3.6
- python: 3.5
install:
- pip install pytest matplotlib
- pip install .
- pip install '.[test]'
script:
- py.test
- pytest --cov=./
after_success:
- codecov
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -67,7 +67,7 @@ def find_version(*file_paths):
],
extras_require={
'dev': [],
'test': ['pytest', 'matplotlib'],
'test': ['pytest', 'matplotlib', 'codecov', 'pytest-cov'],
'docs': ['sphinx', 'nbsphinx', 'jupyter_client', 'ipykernel', 'ipysankeywidget']
},
)

0 comments on commit 5f8af93

Please sign in to comment.