Skip to content

Commit a0cb515

Browse files
authored
upload coverage for upstream-dev ci (#162)
* upload coverage for upstream-dev ci * fix indent * changelog * multi-line statement
1 parent ca12487 commit a0cb515

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/upstream-dev-ci.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,21 @@ jobs:
6464
- name: Run Tests
6565
if: success()
6666
id: status
67-
run: |
68-
python -m pytest -rf \
69-
--report-log output-${{ matrix.python-version }}-log.jsonl
67+
run: python -m pytest -rf
68+
--report-log output-${{ matrix.python-version }}-log.jsonl
69+
--cov=mplotutils
70+
--cov-report=xml
71+
72+
- name: Upload code coverage to Codecov
73+
uses: codecov/codecov-action@v5
74+
env:
75+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
76+
with:
77+
flags: unittests
78+
env_vars: RUNNER_OS,PYTHON_VERSION
79+
name: codecov-umbrella
80+
fail_ci_if_error: false
81+
7082
- name: Generate and publish the report
7183
if: |
7284
failure()

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
- Replace deprecated `matplotlib.rcsetup.all_backends` with `matplotlib.backends.backend_registry.list_builtin()`
2626
([#160](https://github.com/mpytools/mplotutils/pull/160)).
27+
- Also upload coverage report in upstream dev CI ([#162](https://github.com/mpytools/mplotutils/pull/162)).
2728

2829
## v0.6.0 (04.12.2024)
2930

0 commit comments

Comments
 (0)