Skip to content

Commit 9dc3451

Browse files
update readme & add code coverage test
1 parent f89d305 commit 9dc3451

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ __pycache__
77
*.egg-info
88
/.eggs
99
/.pytest_cache
10+
coverage.xml

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ cache:
3838
- .pytest_cache
3939
install:
4040
- pip3 install pytest
41+
- pip3 install pytest-cov
42+
- pip3 install codacy-coverage
4143
- pip3 install --upgrade pip
4244
- pip3 install -r requirements.txt
4345
script:
44-
- pytest -v
46+
- pytest -v --cov --cov-report xml
47+
- python-codacy-coverage
4548
before_deploy:
4649
- python3 setup.py bdist_wheel || python setup.py bdist_wheel
4750
deploy:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Yet another python index generator
55
[![Travis](https://img.shields.io/travis/BruceZhang1993/index-generator.svg?style=for-the-badge)](https://travis-ci.org/BruceZhang1993/index-generator)
66
[![GitHub top language](https://img.shields.io/github/languages/top/BruceZhang1993/index-generator.svg?style=for-the-badge)](https://github.com/BruceZhang1993/index-generator)
77
[![Requires.io](https://img.shields.io/requires/github/BruceZhang1993/index-generator.svg?style=for-the-badge)](https://requires.io/github/BruceZhang1993/index-generator/requirements/?branch=master)
8+
[![GitHub](https://img.shields.io/github/license/BruceZhang1993/index-generator.svg?style=for-the-badge)](https://github.com/BruceZhang1993/index-generator/blob/master/LICENSE)
9+
![Codacy grade](https://img.shields.io/codacy/grade/3aef89bd80514ba0a2e353aefac47ebe.svg?style=for-the-badge)
810

911
## Install
1012

0 commit comments

Comments
 (0)