Skip to content

Commit

Permalink
Fix coverage reporting (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
arneso-ssb authored Jan 18, 2024
1 parent 7f39db2 commit e7b1c08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/.github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
if: always() && matrix.session == 'tests'
uses: "actions/upload-artifact@v4"
with:
name: coverage-data
name: coverage-data-${{"{{"}} matrix.os {{"}}"}}-${{"{{"}} matrix.python {{"}}"}}
path: ".coverage.*"

- name: Upload documentation
Expand Down
10 changes: 4 additions & 6 deletions {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["{{cookiecutter.package_name}}", "tests"]
relative_files = true

[tool.coverage.report]
show_missing = true
Expand Down Expand Up @@ -128,15 +129,12 @@ classmethod-decorators = ["classmethod", "validator", "root_validator", "pydanti
[tool.ruff.per-file-ignores]
"*/__init__.py" = ["F401"]
"**/tests/*" = [
# asserts are encouraged in pytest
"S101",
# return annotations don't add value for test functions
"ANN201",
# docstrings are overkill for test functions
"S101", # asserts are encouraged in pytest
"ANN201", # return annotations don't add value for test functions
"D100", # docstrings are overkill for test functions
"D101",
"D102",
"D103",
"D100",
]

[build-system]
Expand Down

0 comments on commit e7b1c08

Please sign in to comment.