Skip to content

Commit 5ce313e

Browse files
Diego ArdilaDiego Ardila
authored andcommitted
add coverage report and store test outputs
1 parent 6871ddf commit 5ce313e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.circleci/config.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@ jobs:
3232
poetry run mypy --ignore-missing-imports nucleus
3333
- run:
3434
name: Pytest Test Cases
35-
command: | # Run test suite, uses SCALE_TEST_API_KEY env variable
36-
poetry run pytest
35+
command: | # Run test suite, uses NUCLEUS_TEST_API_KEY env variable
36+
poetry run coverage run -m pytest
37+
poetry run coverage report
38+
poetry run coverage html
39+
40+
- store_test_results:
41+
path: htmlcov
3742
pypi_publish:
3843
docker:
3944
- image: cimg/python:3.6

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ requests = "^2.25.1"
3838
tqdm = "^4.60.0"
3939
boto3 = "^1.17.53"
4040
mypy = "^0.812"
41+
coverage = "^5.5"
4142

4243
[tool.poetry.dev-dependencies]
4344
poetry = "^1.1.5"

0 commit comments

Comments
 (0)