Skip to content

Commit

Permalink
Attempt to tell coverage to ignore tests/ folders and test_*.py files.
Browse files Browse the repository at this point in the history
  • Loading branch information
johannvk committed Nov 18, 2024
1 parent 9ccde04 commit 32dae27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# echo "NUMBA_DISABLE_JIT=1" >> $GITHUB_ENV
- name: Run pytest - with Numba installed
run: |
pytest --cov --cov-config=.codecov.yml --cov-report=xml --cov-append
pytest --cov --cov-report=xml --cov-append
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,9 @@ allowed-confusables=["σ"]

[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.coverage.run]
omit = [
"*/tests/*",
"*/test_*.py"
]
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ addopts =
# --cov sktime
# --cov-report xml
# --cov-report html
--cov-config=pyproject.toml
# --showlocals
# --matrixdesign True
# --only_changed_modules True
Expand Down

0 comments on commit 32dae27

Please sign in to comment.