WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit fd751e2

Browse files
authored
Define coverage in pyproject.toml (#359)
1 parent 8f63b8d commit fd751e2

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
@@ -60,7 +60,7 @@ jobs:
6060
run: |
6161
pip install versioneer[toml]==0.29
6262
pip install . --no-deps --no-build-isolation
63-
coverage run --omit="pylammpsmpi/_version.py,tests/*" -m unittest discover tests
63+
coverage run
6464
coverage xml
6565
- name: Upload coverage reports to Codecov
6666
uses: codecov/codecov-action@v5

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,7 @@ style = "pep440-pre"
9292
versionfile_source = "pylammpsmpi/_version.py"
9393
parentdir_prefix = "pylammpsmpi"
9494
tag_prefix = "pylammpsmpi-"
95+
96+
[tool.coverage.run]
97+
omit = ["pylammpsmpi/_version.py", "tests/*"]
98+
command_line = "-m unittest discover tests"

0 commit comments

Comments
 (0)