Py package: pytest-cov. Upload test coverage to codecov.
This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -22,6 +22,16 @@ steps:
|
|||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- py.test test
|
- py.test test
|
||||||
|
|
||||||
|
- name: codecov
|
||||||
|
image: python3:6-alpine
|
||||||
|
environment:
|
||||||
|
CODECOV_TOKEN:
|
||||||
|
from_secret: CODECOV_TOKEN
|
||||||
|
commands:
|
||||||
|
- py.test --cov-report=xml --cov=src test
|
||||||
|
- pip install codecov
|
||||||
|
- codecov -t
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|||||||
@@ -6,3 +6,4 @@ click>=6.7
|
|||||||
langdetect>=1.0.7
|
langdetect>=1.0.7
|
||||||
titlecase>=0.12.0
|
titlecase>=0.12.0
|
||||||
pytest>=5.3.5
|
pytest>=5.3.5
|
||||||
|
pytest-cov>=2.8.1
|
||||||
|
|||||||
Reference in New Issue
Block a user