Skip to content

Commit

Permalink
DE-701 | CodeCov Orb in CircleCI (#301)
Browse files Browse the repository at this point in the history
* DE-701 | initial commit

* add newline

* new: `docker logs`

* remove `--rm` from `starter.sh`

* temp: lower coverage

* update config

* fix yml indentation

* Update config.yml

* revert aa82b00
  • Loading branch information
aMahanna authored Jan 11, 2024
1 parent f007137 commit 99f5d9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
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

0 comments on commit 99f5d9b

Please sign in to comment.