Skip to content

Commit

Permalink
Update to work locally and on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed Apr 29, 2024
1 parent e8f31f1 commit 08a5c9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/run_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ jobs:
- name: Run tests and generate coverage report
run: |
pytest
python -m coverage xml # codecov uploader requires xml format
python -m coverage report -m
# coverage is configured in pyproject.toml
pytest --cov=hdmf --cov-report=xml --cov-report=term # codecov uploader requires xml format
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
11 changes: 5 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ packages = ["src/hdmf"]
# verbose = 1

[tool.pytest.ini_options]
addopts = "--cov=hdmf --cov-report html"
norecursedirs = "tests/unit/helpers"

[tool.codespell]
Expand All @@ -86,17 +85,17 @@ ignore-words-list = "datas"

[tool.coverage.run]
branch = true
source = ["src/"]
omit = [
"src/hdmf/_due.py",
"src/hdmf/testing/*",
]
source = ["src"]

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstract"
]
omit = [
"*/hdmf/_due.py",
"*/hdmf/testing/*",
]

# [tool.black]
# line-length = 120
Expand Down

0 comments on commit 08a5c9a

Please sign in to comment.