Skip to content

Commit

Permalink
[MISC] Add codecov (#512)
Browse files Browse the repository at this point in the history
* Add codecov

* XML export

* Coverage

* Changing asserts

* Coverage

* Change asserts

* Coverage
  • Loading branch information
dragomirp authored Jun 16, 2024
1 parent 25a72cc commit 1ef75c3
Show file tree
Hide file tree
Showing 13 changed files with 812 additions and 654 deletions.
10 changes: 10 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
github_checks:
annotations: false
coverage:
status:
project:
default:
target: 70%
patch:
default:
target: 33%
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
pipx install poetry
- name: Run tests
run: tox run -e unit
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

build:
name: Build charm
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ build/
*.charm
.tox/
.coverage
coverage.xml
__pycache__/
*.py[cod]
requirements.txt
Expand Down
Loading

0 comments on commit 1ef75c3

Please sign in to comment.