Skip to content

Commit

Permalink
added coverage (#19)
Browse files Browse the repository at this point in the history
* added coverage
  • Loading branch information
anushka255 authored Aug 27, 2024
1 parent 790ab06 commit f1b3092
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,13 @@ jobs:
- name: Install package
run: pip install -e .

- name: Pytest
run: pytest
- name: Pytest with coverage
run: coverage run --source=src -m pytest

- name: Upload coverage to Coveralls
if: matrix.os == 'ubuntu-latest'
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}


2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ addopts = "-sv"
dev = [
"build",
"pytest",
"coverage",
"coveralls"
]
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ sphinx-autodoc-typehints
nbsphinx
sphinx-gallery
sphinx-rtd-theme
coverage
coveralls

0 comments on commit f1b3092

Please sign in to comment.