diff --git a/.circleci/config.yml b/.circleci/config.yml index 56dafc194b..87278d1208 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,7 +45,8 @@ jobs: # a collection of steps name: Running tests command: | . venv/bin/activate - pytest --cov --cov-report html + pytest tests --cov --cov-report html + coveralls - store_artifacts: path: htmlcov diff --git a/README.md b/README.md index eb7dba3beb..b69254fef8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # pass-culture-api +[![Coverage Status](https://coveralls.io/repos/github/betagouv/pass-culture-api/badge.svg)](https://coveralls.io/github/betagouv/pass-culture-api) + C'est le backend de l'application Pass Culture. Il faut aller voir le README dans https://github.com/betagouv/pass-culture-main diff --git a/requirements.txt b/requirements.txt index 8c352297db..a942b79270 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,7 @@ babel==2.6.0 bcrypt==3.1.4 beautifulsoup4==4.6.3 colorthief==0.2.1 +coveralls==1.6.0 dateparser==0.7.0 freezegun==0.3.11 Flask==1.0.2 diff --git a/setup.cfg b/setup.cfg index b54263f9b2..6a5303a115 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,4 @@ [coverage:report] omit = tests/* + venv/*