Skip to content

Commit 99f5d9b

Browse files
authored
DE-701 | CodeCov Orb in CircleCI (#301)
* 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
1 parent f007137 commit 99f5d9b

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.circleci/config.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
version: 2.1
22

3-
# orbs:
4-
# coveralls: coveralls/[email protected]
3+
orbs:
4+
codecov: codecov/[email protected]
55

66
workflows:
77
ci:
88
jobs:
99
- lint
1010
- test:
11+
name: Python (<< matrix.python_version >>) - ArangoDB (<< matrix.arangodb_license >>, << matrix.arangodb_version >> << matrix.arangodb_config >>)
1112
matrix:
1213
parameters:
1314
# TODO: Revisit why pyenv doesn't recognize 3.12
@@ -82,6 +83,8 @@ jobs:
8283

8384
- run: docker ps -a
8485

86+
- run: docker logs arango
87+
8588
- run:
8689
name: "Run pytest"
8790
command: |
@@ -97,17 +100,13 @@ jobs:
97100
fi
98101
99102
echo "Running pytest with args: ${args[@]}"
100-
pytest --cov=arango --cov-report=xml "${args[@]}"
103+
pytest --cov=arango --cov-report=xml --cov-report term-missing --color=yes --code-highlight=yes "${args[@]}"
101104
102105
- store_artifacts:
103106
path: test-results
104107

105108
- store_test_results:
106109
path: test-results
107110

108-
# - run:
109-
# name: Upload to Coveralls
110-
# command: |
111-
# if [ "<< parameters.python_version >>" = "3.11" && "<< parameters.arangodb_config >>" = "single" && "<< parameters.arangodb_license >>" = "community" && "<< parameters.arangodb_version >>" = "latest" ]; then
112-
# coveralls/upload
113-
# fi
111+
- codecov/upload:
112+
file: coverage.xml

starter.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ else
3939
conf_file="${setup}"
4040
fi
4141

42-
docker run -d --rm \
42+
docker run -d \
4343
--name arango \
4444
-p 8528:8528 \
4545
-p 8529:8529 \

0 commit comments

Comments
 (0)