Skip to content

Commit f2f90aa

Browse files
Setup coverage reporting on codecov.io (#411)
1 parent 16a23f9 commit f2f90aa

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/codecov.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
# https://docs.codecov.com/docs/pull-request-comments#disable-comment
3+
comment: false
4+
5+
# https://docs.codecov.com/docs/commit-status
6+
coverage:
7+
status:
8+
project:
9+
default:
10+
target: auto
11+
threshold: 3
12+
paths:
13+
- "ocs/"
14+
patch: false

.github/workflows/pytest.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,11 @@ jobs:
6363
mv ./tests/.coverage.* ./
6464
pip install coveralls
6565
coverage combine
66+
coverage xml
6667
coverage report
6768
coveralls --service=github
69+
70+
- name: Upload results to Codecov
71+
uses: codecov/codecov-action@v4
72+
with:
73+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)