Skip to content

Commit 6b4ecac

Browse files
authored
Merge pull request #1011 from rfbgo/codecov
Add codecov io upload
2 parents a3a2b19 + acf05e4 commit 6b4ecac

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ pytest-xdist
88
pytest-cov
99
line_profiler
1010
isort
11+
codecov-cli

share/ramble/cloud-build/ramble-pr-unit-tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ steps:
7272
exit $$error
7373
id: ramble-unit-tests
7474
entrypoint: /bin/bash
75+
env:
76+
- 'CODECOV_TOKEN=$_CODECOV_TOKEN'
77+
- 'PUSH_CODECOV=$_PUSH_CODECOV'
7578
substitutions:
7679
_SPACK_REF: v0.21.2
7780
_PYTHON_VER: 3.11.6

share/ramble/qa/run-unit-tests

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ if [ $? != 0 ]; then
7373
ERROR=1
7474
fi
7575

76+
if [[ "$PUSH_CODECOV" ]]; then
77+
echo "Processing codecov upload"
78+
codecovcli upload-process
79+
fi
7680

7781
if [ $ERROR == 1 ]; then
7882
exit 1

0 commit comments

Comments
 (0)