Skip to content

Commit b0d708f

Browse files
authored
Add codecov (#59)
1 parent 2138912 commit b0d708f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.circleci/codecov.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 100

.circleci/config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ orbs:
33
python: circleci/[email protected]
44
docker: circleci/[email protected]
55
github-cli: circleci/[email protected]
6+
codecov: codecov/[email protected]
67
executors:
78
python:
89
docker:
@@ -57,7 +58,12 @@ jobs:
5758
- checkout
5859
- python/install-packages:
5960
pkg-manager: poetry
60-
- run: poetry run pytest --cov=src --cov-report=html --cov-fail-under=100
61+
- run: |
62+
poetry run pytest --cov=src \
63+
--cov-fail-under=100 \
64+
--cov-report=html \
65+
--cov-report json
66+
- codecov/upload
6167
- store_artifacts:
6268
path: htmlcov
6369
workflows:

0 commit comments

Comments
 (0)