Skip to content

Commit 1ef75c3

Browse files
authored
[MISC] Add codecov (#512)
* Add codecov * XML export * Coverage * Changing asserts * Coverage * Change asserts * Coverage
1 parent 25a72cc commit 1ef75c3

13 files changed

+812
-654
lines changed

.github/codecov.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
github_checks:
2+
annotations: false
3+
coverage:
4+
status:
5+
project:
6+
default:
7+
target: 70%
8+
patch:
9+
default:
10+
target: 33%

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
pipx install poetry
3838
- name: Run tests
3939
run: tox run -e unit
40+
- name: Upload Coverage to Codecov
41+
uses: codecov/codecov-action@v4
42+
env:
43+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4044

4145
build:
4246
name: Build charm

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build/
33
*.charm
44
.tox/
55
.coverage
6+
coverage.xml
67
__pycache__/
78
*.py[cod]
89
requirements.txt

0 commit comments

Comments
 (0)