Skip to content

Commit

Permalink
Merge pull request #245 from gpengzhi/codecov
Browse files Browse the repository at this point in the history
Add codecov in CI
  • Loading branch information
gpengzhi committed Nov 19, 2019
2 parents 0cce879 + d526d37 commit caa931a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ install:
- pip install --progress-bar off .[tensorflow-cpu]
- pip install flake8==3.7.7
- pip install pytest
- pip install coverage codecov

script:
# Linting
- flake8 texar/ examples/
# Unit tests
- pytest
# Test coverage
- coverage run -m pytest

after_success:
- codecov

jobs:
include:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

[![pypi](https://img.shields.io/pypi/v/texar.svg)](https://pypi.python.org/pypi/texar)
[![Build Status](https://travis-ci.org/asyml/texar.svg?branch=master)](https://travis-ci.org/asyml/texar)
[![codecov](https://codecov.io/gh/asyml/texar/branch/master/graph/badge.svg)](https://codecov.io/gh/asyml/texar)
[![Documentation Status](https://readthedocs.org/projects/texar/badge/?version=latest)](https://texar.readthedocs.io/en/latest/?badge=latest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/asyml/texar/blob/master/LICENSE)

Expand Down

0 comments on commit caa931a

Please sign in to comment.