Skip to content

Commit 3e99fc5

Browse files
committed
fix coverage calculation
1 parent f0cdd79 commit 3e99fc5

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ jobs:
217217
timeout-minutes: 30
218218
run: |
219219
pip install . --no-deps --no-build-isolation
220-
coverage run -m unittest discover tests
220+
coverage run
221221
coverage xml
222222
- name: Upload coverage reports to Codecov
223223
uses: codecov/codecov-action@v5

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Python Workflow Definition
22
[![Pipeline](https://github.com/pythonworkflow/python-workflow-definition/actions/workflows/pipeline.yml/badge.svg)](https://github.com/pythonworkflow/python-workflow-definition/actions/workflows/pipeline.yml)
3+
[![codecov](https://codecov.io/github/pythonworkflow/python-workflow-definition/graph/badge.svg?token=3JXD1GN8LG)](https://codecov.io/github/pythonworkflow/python-workflow-definition)
34
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/pythonworkflow/python-workflow-definition/HEAD)
45
[![DOI](https://zenodo.org/badge/945869529.svg)](https://doi.org/10.5281/zenodo.15516179)
56

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ plot = [
3535
"networkx>=2.8.8,<=3.5",
3636
"ipython>=7.33.0,<=9.8.0",
3737
]
38+
39+
[tool.coverage.run]
40+
source = ["python_workflow_definition"]
41+
command_line = "-m unittest discover tests"

0 commit comments

Comments
 (0)