Skip to content

Commit

Permalink
TST: Add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Sep 14, 2023
1 parent 338c7e8 commit e0a202b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
cache: "pip"
cache-dependency-path: "pyproject.toml"
- run: pip install -c .github/test-constraints.txt '.[test]'
- run: pytest
- run: pytest --cov --cov-report=lcov
- name: Coverage
uses: coverallsapp/github-action@v2
build:
name: Build
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
__pycache__
_version.py
.*.swp
.coverage*
.envrc
*.lcov
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# _Heracles_ — Harmonic-space statistics on the sphere

[![Coverage Status](https://coveralls.io/repos/github/heracles-ec/heracles/badge.svg?branch=main)](https://coveralls.io/github/heracles-ec/heracles?branch=main)

The _Heracles_ code was developed in the _Euclid_ Science Ground Segment.
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ optional-dependencies = {docs = [
"sphinxcontrib-katex",
], test = [
"pytest",
"pytest-cov",
"pytest-rerunfailures",
]}
readme = "README.md"
Expand All @@ -52,6 +53,12 @@ force-exclude = """
)
"""

[tool.coverage]
report = {skip_covered = true, sort = "cover"}
run = {branch = true, parallel = true, source = [
"heracles",
]}

[tool.hatch]
build.hooks.vcs.version-file = "heracles/_version.py"
version.source = "vcs"
Expand Down

0 comments on commit e0a202b

Please sign in to comment.