Skip to content

Commit

Permalink
Code coverage merge
Browse files Browse the repository at this point in the history
  • Loading branch information
emaciupe committed Jul 5, 2022
1 parent 67814d6 commit a4afe62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
--data build_parameters[BASE_TAG]=$BASE_TAG \
--data revision=$CIRCLE_SHA1 \
https://circleci.com/api/v1.1/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/$CIRCLE_BRANCH
test:
working_directory: ~/code
docker:
Expand All @@ -63,6 +64,13 @@ jobs:
parallelism: 6
steps:
- checkout
- run: mkdir -p build/coverage
- persist_to_workspace:
root: build
paths:
- coverage
- attach_workspace:
at: build/coverage
- restore_cache:
key: source-{{ .Branch }}--{{ checksum "Pipfile.lock" }}-{{ checksum ".circleci/config.yml" }}
- run:
Expand All @@ -85,7 +93,6 @@ jobs:
path: test-results
- store_artifacts:
path: build/coverage
destination: coverage
- run:
name: Triggering build_and_deploy job
command: |
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ addopts =
--echo-env=CIRCLECI
--echo-env=PIPENV_VERBOSITY
--capture=no
--cov-append
--cov-report=html
--cov-config=tests/.coveragerc
--cov=etools_datamart
Expand Down Expand Up @@ -57,6 +58,7 @@ commands =
isort src/ tests/ --check-only
pipenv run pytest --create-db \
-q \
--cov-append \
--cov-report=term \
--cov-config=tests/.coveragerc \
--cov=etools_datamart \
Expand Down

0 comments on commit a4afe62

Please sign in to comment.