Skip to content

Commit

Permalink
Create coverage badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoOinonen committed Nov 24, 2023
1 parent c13da10 commit ddaadcd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,18 @@ jobs:
run: pytest --junitxml=pytest.xml --cov-report=term-missing --cov=mlspm tests | tee pytest-coverage.txt

- name: Pytest coverage comment
id: coverage_comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml
junitxml-path: ./pytest.xml

- name: Create coverage badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.COVERAGE_GIST_SECRET }}
gistID: 913d30e2a2e333eb407353072948042d
filename: coverage.json
label: Coverage
message: ${{ steps.coverage_comment.outputs.coverage }}
color: ${{ steps.coverage_comment.outputs.color }}

2 comments on commit ddaadcd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
mlspm
   __init__.py10100% 
   _weights.py221532%34–53
   cli.py41410%1–72
   data_loading.py15712421%46–53, 56–70, 73–85, 88, 91, 94–99, 103–112, 132–147, 168–184, 205–224, 232–253, 269, 283–286, 296–298
   datasets.py45450%1–77
   logging.py2467271%18–29, 54, 62, 66, 69, 72–102, 112, 116–119, 121–124, 128, 131, 136, 147, 150, 153, 191, 194, 208–209, 214, 217, 225, 230, 233, 239, 248, 253, 268, 270, 273–277, 290, 292, 366, 371, 379, 385, 395–397
   losses.py10100% 
   models.py20100% 
   modules.py100793%37, 74, 190, 194–197, 213
   preprocessing.py1016140%42–45, 61–95, 106–116, 130–159, 170–174
   utils.py17711038%79–81, 84–85, 96–110, 134–144, 148, 152, 155–168, 177–199, 203–204, 219–237, 258–281, 307–308, 313, 350–355, 365
   visualization.py57570%1–112
mlspm/_c
   __init__.py00100% 
   bindings.py704733%42–78, 82–86, 90–126, 130–146
mlspm/_cuda
   __init__.py00100% 
   bindings.py28280%1–45
mlspm/graph
   __init__.py40100% 
   _analysis.py32921634%88–89, 101–102, 114–115, 127–128, 310–463, 475–581
   _data_loading.py230100% 
   _molecule_graph.py1504173%38–41, 65–66, 143, 219, 290–314, 328–339, 351–356
   _utils.py18713727%37–86, 94–128, 159–173, 192–196, 215–230, 264–301, 350–351, 390–406, 427–443, 459–463
   _visualization.py1771770%1–301
   losses.py29197%66
   models.py2455478%16, 19–24, 30–33, 267–288, 353, 420–421, 505, 542, 589–591, 637–647, 670–732
TOTAL2192123344% 

Tests Skipped Failures Errors Time
18 0 💤 0 ❌ 0 🔥 10.724s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
mlspm
   __init__.py10100% 
   _weights.py221532%34–53
   cli.py41410%1–72
   data_loading.py15712421%46–53, 56–70, 73–85, 88, 91, 94–99, 103–112, 132–147, 168–184, 205–224, 232–253, 269, 283–286, 296–298
   datasets.py45450%1–77
   logging.py2467271%18–29, 54, 62, 66, 69, 72–102, 112, 116–119, 121–124, 128, 131, 136, 147, 150, 153, 191, 194, 208–209, 214, 217, 225, 230, 233, 239, 248, 253, 268, 270, 273–277, 290, 292, 366, 371, 379, 385, 395–397
   losses.py10100% 
   models.py20100% 
   modules.py100793%37, 74, 190, 194–197, 213
   preprocessing.py1016140%42–45, 61–95, 106–116, 130–159, 170–174
   utils.py17711038%79–81, 84–85, 96–110, 134–144, 148, 152, 155–168, 177–199, 203–204, 219–237, 258–281, 307–308, 313, 350–355, 365
   visualization.py57570%1–112
mlspm/_c
   __init__.py00100% 
   bindings.py704733%42–78, 82–86, 90–126, 130–146
mlspm/_cuda
   __init__.py00100% 
   bindings.py28280%1–45
mlspm/graph
   __init__.py40100% 
   _analysis.py32921634%88–89, 101–102, 114–115, 127–128, 310–463, 475–581
   _data_loading.py230100% 
   _molecule_graph.py1504173%38–41, 65–66, 143, 219, 290–314, 328–339, 351–356
   _utils.py18713727%37–86, 94–128, 159–173, 192–196, 215–230, 264–301, 350–351, 390–406, 427–443, 459–463
   _visualization.py1771770%1–301
   losses.py29197%66
   models.py2455478%16, 19–24, 30–33, 267–288, 353, 420–421, 505, 542, 589–591, 637–647, 670–732
TOTAL2192123344% 

Tests Skipped Failures Errors Time
18 0 💤 0 ❌ 0 🔥 10.857s ⏱️

Please sign in to comment.