Skip to content

Commit

Permalink
ci: add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
dovahcrow committed Apr 24, 2020
1 parent 7b28650 commit 0871b4c
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ jobs:
command: poetry run mypy dataprep
- run:
name: Test the project
command: poetry run pytest dataprep
command: poetry run pytest --cov=dataprep
- run:
name: Style check the project
command: poetry run pylint dataprep
- run:
name: Update coverage data to codecov
command: poetry run codecov
docs-build:
docker:
- image: circleci/python:3.7.2
Expand Down
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
source=dataprep
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,4 @@ venv.bak/
notebooks/
bfg.jar
profiling
.coverage
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Dataprep [![Version]](https://pypi.org/project/dataprep/) [![Python Version]](https://pypi.org/project/dataprep/) [![License]](LICENSE) ![Build Status] [![Downloads]](https://pepy.tech/project/dataprep) [![Chat]](https://discord.gg/FXsK2P)
# Dataprep [![Version]](https://pypi.org/project/dataprep/) [![Python Version]](https://pypi.org/project/dataprep/) [![License]](LICENSE) [![Codecov]](https://codecov.io/gh/sfu-db/dataprep) ![Build Status] [![Downloads]](https://pepy.tech/project/dataprep) [![Chat]](https://discord.gg/FXsK2P)
[Documentation] | [Mail List & Forum]

Dataprep let you prepare your data using a single library with a few lines of code.
Expand Down Expand Up @@ -88,3 +88,4 @@ Please take a look at our [wiki] for development documentations!
[Downloads]: https://pepy.tech/badge/dataprep
[Python Version]: https://img.shields.io/pypi/pyversions/dataprep?style=flat-square
[Version]: https://img.shields.io/pypi/v/dataprep?style=flat-square
[Codecov]: https://img.shields.io/codecov/c/github/sfu-db/dataprep?style=flat-square
20 changes: 20 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: no
81 changes: 80 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ sphinx = "~2.4"
toml = "^0.10.0"
rstcheck = "^3.3.1"
sphinx-autobuild = "^0.7.1"
pytest-cov = "^2.8.1"
codecov = "^2.0.22"

[tool.black]
line-length = 88
Expand Down

0 comments on commit 0871b4c

Please sign in to comment.