From 842482b12302c03c638a23d7ba561e00f5a50a88 Mon Sep 17 00:00:00 2001 From: Alex Petenchea Date: Sun, 25 Aug 2024 18:00:53 +0300 Subject: [PATCH 1/2] Circle CI code coverage --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b5f2620..b8511d2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -77,6 +77,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 @@ -88,7 +89,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: From 65940da1dd081b89f1aafadb0cabf3a0e08f6e26 Mon Sep 17 00:00:00 2001 From: Alex Petenchea Date: Sun, 25 Aug 2024 18:10:05 +0300 Subject: [PATCH 2/2] Adding resource classes --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b8511d2..9d37208 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: