Skip to content

Commit

Permalink
Add codecov support (fixes christiansandberg#366) (christiansandberg#367
Browse files Browse the repository at this point in the history
)

* Integrate codecov into pythonpackage.yml
  • Loading branch information
sveinse authored Jun 12, 2024
1 parent 9df972c commit b93f951
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install pytest pytest-cov
pip install -e .
- name: Test with pytest
run: |
pytest -v
pytest -v --cov=canopen --cov-report=xml --cov-branch
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 7 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ignore:
- "*/test/*"

comment:
require_changes: true
layout: "reach, diff, flags, files"
behavior: default

0 comments on commit b93f951

Please sign in to comment.