Skip to content

Commit b93f951

Browse files
authored
Add codecov support (fixes #366) (#367)
* Integrate codecov into pythonpackage.yml
1 parent 9df972c commit b93f951

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30-
pip install pytest
30+
pip install pytest pytest-cov
3131
pip install -e .
3232
- name: Test with pytest
3333
run: |
34-
pytest -v
34+
pytest -v --cov=canopen --cov-report=xml --cov-branch
35+
- name: Upload coverage reports to Codecov
36+
uses: codecov/codecov-action@v4
37+
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ignore:
2+
- "*/test/*"
3+
4+
comment:
5+
require_changes: true
6+
layout: "reach, diff, flags, files"
7+
behavior: default

0 commit comments

Comments
 (0)