Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DE-701 | CodeCov Orb in CircleCI #301

Merged
merged 9 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
version: 2.1

# orbs:
# coveralls: coveralls/coveralls@2.2.1
orbs:
codecov: codecov/codecov@3.3.0

workflows:
ci:
jobs:
- lint
- test:
name: Python (<< matrix.python_version >>) - ArangoDB (<< matrix.arangodb_license >>, << matrix.arangodb_version >> << matrix.arangodb_config >>)
matrix:
parameters:
# TODO: Revisit why pyenv doesn't recognize 3.12
Expand Down Expand Up @@ -82,6 +83,8 @@ jobs:

- run: docker ps -a

- run: docker logs arango

- run:
name: "Run pytest"
command: |
Expand All @@ -97,17 +100,13 @@ jobs:
fi

echo "Running pytest with args: ${args[@]}"
pytest --cov=arango --cov-report=xml "${args[@]}"
pytest --cov=arango --cov-report=xml --cov-report term-missing --color=yes --code-highlight=yes "${args[@]}"

- store_artifacts:
path: test-results

- store_test_results:
path: test-results

# - run:
# name: Upload to Coveralls
# command: |
# if [ "<< parameters.python_version >>" = "3.11" && "<< parameters.arangodb_config >>" = "single" && "<< parameters.arangodb_license >>" = "community" && "<< parameters.arangodb_version >>" = "latest" ]; then
# coveralls/upload
# fi
- codecov/upload:
file: coverage.xml
2 changes: 1 addition & 1 deletion starter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ else
conf_file="${setup}"
fi

docker run -d --rm \
docker run -d \
--name arango \
-p 8528:8528 \
-p 8529:8529 \
Expand Down