Skip to content

Commit

Permalink
Test with pytest and send coverage to Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored and claudep committed Oct 5, 2019
1 parent ca8dbcf commit f3d02aa
Show file tree
Hide file tree
Showing 4 changed files with 24 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 @@
# .coveragerc to control coverage.py

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma:
pragma: no cover

# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ junit-py27.xml
# pyenv noise
.python-version
tablib.egg-info/*

# Coverage
.coverage
htmlcov
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
language: python
cache: pip

matrix:
include:
- python: 2.7
- python: 3.5
- python: 3.6
- python: 3.7
- python: 3.8-dev

install:
- pip install -r requirements.txt
script: python test_tablib.py
- pip install -U pytest pytest-cov

script: pytest --cov tablib

after_success:
- pip install -U codecov
- codecov
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Jazzband](https://jazzband.co/static/img/badge.svg)](https://jazzband.co/)
[![Build Status](https://travis-ci.org/jazzband/tablib.svg?branch=master)](https://travis-ci.org/jazzband/tablib)
[![codecov](https://codecov.io/gh/jazzband/tablib/branch/master/graph/badge.svg)](https://codecov.io/gh/jazzband/tablib)

_____ ______ ___________ ______
__ /_______ ____ /_ ___ /___(_)___ /_
Expand Down

0 comments on commit f3d02aa

Please sign in to comment.