Add code coverage

This commit is contained in:
Vincent Maillol
2020-11-15 08:16:26 +01:00
parent 913f50298c
commit b9519bb868
7 changed files with 41 additions and 8 deletions

View File

@@ -2,11 +2,14 @@ language: python
python:
- '3.8'
script:
- pytest tests/
- pytest --cov-report=xml --cov=aiohttp_pydantic tests/
install:
- pip install -U setuptools wheel pip
- pip install -r test_requirements.txt
- pip install -r requirements/test.txt
- pip install -r requirements/ci.txt
- pip install .
after_success:
- codecov
deploy:
provider: pypi
username: __token__
@@ -16,4 +19,4 @@ deploy:
on:
tags: true
branch: main
python: '3.8'
python: '3.8'