Skip to content

Commit

Permalink
add coveragepy
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodenoughPhysicsLab committed Dec 29, 2024
1 parent 213ec9d commit 7a7793f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[run]
source = physicsLab/
omit = */mido/*

[report]
show_missing = False

[json]
output = coverage.json
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install typing-extensions requests colorama
pip install typing-extensions requests colorama coverage
- name: Test with unittest
run: |
python -m unittest test_pl -v
coverage run -m unittest test_pl -v
- name: Generate coverage report
run: |
coverage report
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.*
.coverage
htmlcov/

/venv

Expand Down

0 comments on commit 7a7793f

Please sign in to comment.