Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,14 @@ jobs:
# Install project.
- run: poetry install --no-interaction

# Run tests.
- run: poetry run pytest
# Run tests with coverage.
- run: poetry run coverage run -m pytest

# Generate coverage report.
- run: poetry run coverage xml

# Upload coverage report to Codecov.
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ __pycache__/

*.DS_Store

notebooks/.ipynb_checkpointsdocs/_build/html
notebooks/.ipynb_checkpointsdocs/_build/html

.coverage
coverage.xml
13 changes: 13 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
comment:
# Only post a codecov comment if coverage changes.
require_changes: true

coverage:
status:
# Disable GitHub checks for code coverage that make otherwise valid builds fail.
project: off
patch: off

github_checks:
# Disable inline annotations of code coverage in pull requests.
annotations: false
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ nbsphinx = "^0.9.4"
pandoc = "^2.3"
isort = "^5.13.2"
pre-commit = "^3.7.1"
coverage = "^7"

[docs]
jupyter = "^1.0.0"
Expand All @@ -41,6 +42,9 @@ sphinx-rtd-theme = "^2.0.0"
nbsphinx = "^0.9.4"
pandoc = "^2.3"

[tool.coverage.run]
source = ["evofr"]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"