diff --git a/.github/workflows/upstream-dev-ci.yaml b/.github/workflows/upstream-dev-ci.yaml index 9cb8242..334d7c9 100644 --- a/.github/workflows/upstream-dev-ci.yaml +++ b/.github/workflows/upstream-dev-ci.yaml @@ -64,9 +64,21 @@ jobs: - name: Run Tests if: success() id: status - run: | - python -m pytest -rf \ - --report-log output-${{ matrix.python-version }}-log.jsonl + run: python -m pytest -rf + --report-log output-${{ matrix.python-version }}-log.jsonl + --cov=mplotutils + --cov-report=xml + + - name: Upload code coverage to Codecov + uses: codecov/codecov-action@v5 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + flags: unittests + env_vars: RUNNER_OS,PYTHON_VERSION + name: codecov-umbrella + fail_ci_if_error: false + - name: Generate and publish the report if: | failure() diff --git a/CHANGELOG.md b/CHANGELOG.md index a8e7b26..5dcc24e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - Replace deprecated `matplotlib.rcsetup.all_backends` with `matplotlib.backends.backend_registry.list_builtin()` ([#160](https://github.com/mpytools/mplotutils/pull/160)). +- Also upload coverage report in upstream dev CI ([#162](https://github.com/mpytools/mplotutils/pull/162)). ## v0.6.0 (04.12.2024)