Skip to content

Commit e42a9c2

Browse files
authored
Define coverage in pyproject.toml (#378)
1 parent 4c3fddd commit e42a9c2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
run: |
134134
pip install versioneer[toml]==0.29
135135
pip install . --no-deps --no-build-isolation
136-
coverage run --omit="structuretoolkit/_version.py,tests/*" -m unittest discover tests
136+
coverage run
137137
coverage xml
138138
- name: Upload coverage reports to Codecov
139139
if: matrix.label == 'linux-64-py-3-12'

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,7 @@ style = "pep440-pre"
118118
versionfile_source = "structuretoolkit/_version.py"
119119
parentdir_prefix = "structuretoolkit"
120120
tag_prefix = "structuretoolkit-"
121+
122+
[tool.coverage.run]
123+
omit = ["structuretoolkit/_version.py", "tests/*"]
124+
command_line = "-m unittest discover tests"

0 commit comments

Comments
 (0)