Skip to content

Commit b7ec5d3

Browse files
authored
Configure coverage in pyproject.toml (#779)
1 parent c397141 commit b7ec5d3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,13 @@ jobs:
243243
timeout-minutes: 5
244244
run: |
245245
pip install . --no-deps --no-build-isolation
246-
coverage run -a --omit="executorlib/_version.py,tests/*" -m unittest discover tests
246+
coverage run -a
247247
- name: Test Flux with OpenMPI
248248
shell: bash -l {0}
249249
timeout-minutes: 5
250250
run: >
251251
flux start
252-
coverage run -a --omit="executorlib/_version.py,tests/*" -m unittest tests/test_fluxpythonspawner.py tests/test_fluxjobexecutor_plot.py tests/test_fluxjobexecutor.py tests/test_fluxclusterexecutor.py;
252+
coverage run -a -m unittest tests/test_fluxpythonspawner.py tests/test_fluxjobexecutor_plot.py tests/test_fluxjobexecutor.py tests/test_fluxclusterexecutor.py;
253253
coverage report;
254254
coverage xml
255255
env:

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,7 @@ packages = [
122122
[tool.hatch.version]
123123
source = "vcs"
124124
path = "executorlib/_version.py"
125+
126+
[tool.coverage.run]
127+
omit = ["executorlib/_version.py", "tests/*"]
128+
command_line = "-m unittest discover tests"

0 commit comments

Comments
 (0)