Skip to content

Commit 0a7b083

Browse files
authored
Configure coverage in pyproject.toml (#447)
1 parent 39999af commit 0a7b083

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
@@ -83,7 +83,7 @@ jobs:
8383
shell: bash -l {0}
8484
run: >
8585
flux start
86-
coverage run --omit="pysqa/_version.py,tests/*" -m unittest discover tests
86+
coverage run
8787
- name: Collect Coverage
8888
shell: bash -l {0}
8989
run: coverage xml

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,7 @@ packages = [
113113
[tool.hatch.version]
114114
source = "vcs"
115115
path = "pysqa/_version.py"
116+
117+
[tool.coverage.run]
118+
omit = ["pysqa/_version.py", "tests/*"]
119+
command_line = "-m unittest discover tests"

0 commit comments

Comments
 (0)