Skip to content

Commit

Permalink
Circle CI code coverage (#12)
Browse files Browse the repository at this point in the history
* Circle CI code coverage

* Adding resource classes
  • Loading branch information
apetenchea authored Aug 25, 2024
1 parent 6e7e4bb commit b67f60d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ executors:
python-container:
docker:
- image: cimg/python:3.12
resource_class: small
python-vm:
machine:
image: ubuntu-2204:current
resource_class: medium

workflows:
ci:
Expand Down Expand Up @@ -77,6 +79,7 @@ jobs:
name: Run pytest
command: |
mkdir test-results
mkdir htmlcov
args=("--junitxml=test-results/junit.xml" "--log-cli-level=DEBUG" "--host" "localhost" "--port=8529")
if [ << parameters.arangodb_config >> = "cluster" ]; then
Expand All @@ -88,7 +91,10 @@ jobs:
fi
echo "Running pytest with args: ${args[@]}"
pytest --cov=arango --cov-report=xml --cov-report term-missing --color=yes --code-highlight=yes "${args[@]}"
pytest --cov=arangoasync --cov-report=html:htmlcov --color=yes --code-highlight=yes "${args[@]}"
- store_artifacts:
path: htmlcov
destination: coverage-report
- store_artifacts:
path: test-results
- store_test_results:
Expand Down

0 comments on commit b67f60d

Please sign in to comment.