diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index fd81104e..8fbd0aca 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -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 }} diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..1c4754de --- /dev/null +++ b/codecov.yml @@ -0,0 +1,7 @@ +ignore: + - "*/test/*" + +comment: + require_changes: true + layout: "reach, diff, flags, files" + behavior: default