mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 06:56:13 +00:00
Test with pytest and send coverage to Codecov
This commit is contained in:
+10
@@ -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__.:
|
||||
@@ -30,3 +30,7 @@ junit-py27.xml
|
||||
# pyenv noise
|
||||
.python-version
|
||||
tablib.egg-info/*
|
||||
|
||||
# Coverage
|
||||
.coverage
|
||||
htmlcov
|
||||
|
||||
+9
-1
@@ -1,5 +1,6 @@
|
||||
language: python
|
||||
cache: pip
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- python: 2.7
|
||||
@@ -7,6 +8,13 @@ matrix:
|
||||
- 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
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
[](https://jazzband.co/)
|
||||
[](https://travis-ci.org/jazzband/tablib)
|
||||
[](https://codecov.io/gh/jazzband/tablib)
|
||||
|
||||
_____ ______ ___________ ______
|
||||
__ /_______ ____ /_ ___ /___(_)___ /_
|
||||
|
||||
Reference in New Issue
Block a user