Skip to content

Commit

Permalink
maint: exclude tests from codecoverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Sep 23, 2023
1 parent 8cfc952 commit a2f2d61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: pytest
run: |
pytest --cov=batchspawner
pytest
# GitHub action reference: https://github.com/codecov/codecov-action
- uses: codecov/codecov-action@v3
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,21 @@ target_version = [
# ref: https://docs.pytest.org/en/stable/
#
[tool.pytest.ini_options]
addopts = "--verbose --color=yes --durations=10"
addopts = "--verbose --color=yes --durations=10 --cov=batchspawner"
asyncio_mode = "auto"
testpaths = ["batchspawner/tests"]


# pytest-cov / coverage is used to measure code coverage of tests
#
# ref: https://coverage.readthedocs.io/en/stable/config.html
#
[tool.coverage.run]
omit = [
"batchspawner/tests/*",
]


# tbump is used to simplify and standardize the release process when updating
# the version, making a git commit and tag, and pushing changes.
#
Expand Down

0 comments on commit a2f2d61

Please sign in to comment.