Skip to content

Commit

Permalink
Added codecov report to github action for unit tests. Supressed depre…
Browse files Browse the repository at this point in the history
…cation warnings internal to the kaggle library in tests. Updated badges in readme.
  • Loading branch information
MitchMedeiros committed Jul 31, 2024
1 parent a404168 commit 2928fc5
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 12 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ jobs:
- name: Run tests
working-directory: ./tests
run: pytest
run: pytest --cov . --cov-config=.coveragerc

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ tests/data/test.*
.DS_Store
.env
.pypirc
.coverage
.coverage.*
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,26 @@
<div align="center">
<a href="https://pypi.org/project/mlcompare">
<img alt="Supported Python Versions" src="https://img.shields.io/pypi/pyversions/mlcompare?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxLjAxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjU2IDI1NSI%2BPGRlZnM%2BPGxpbmVhckdyYWRpZW50IGlkPSJsb2dvc1B5dGhvbjAiIHgxPSIxMi45NTklIiB4Mj0iNzkuNjM5JSIgeTE9IjEyLjAzOSUiIHkyPSI3OC4yMDElIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjMzg3ZWI4Ii8%2BPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjMzY2OTk0Ii8%2BPC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImxvZ29zUHl0aG9uM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2LjIxaC02MS4zNjJzLTM0LjQ3NS0uNTU3LTM0LjQ3NSAzMy4zMnY1Ni4wMTNzLTUuMjM1IDMzLjg5NyA2Mi41MTggMzMuODk3bTM0LjExNC0xOS41ODZhMTEuMTIgMTEuMTIgMCAwIDEtMTEuMTMtMTEuMTNhMTEuMTIgMTEuMTIgMCAwIDEgMTEuMTMtMTEuMTMxYTExLjEyIDExLjEyIDAgMCAxIDExLjEzIDExLjEzYTExLjEyIDExLjEyIDAgMCAxLTExLjEzIDExLjEzIi8%2BPC9zdmc%2B&labelColor=blue&color=yellow">
</a>
</a>&nbsp;
<a href="https://pypi.org/project/mlcompare/">
<img alt="PyPI - Version" src="https://img.shields.io/pypi/v/mlcompare?logo=pypi&label=PyPi&labelColor=white&color=blue">
</a>
</a>&nbsp;
<a href="https://pypi.org/project/mlcompare/">
<img alt="PyPI - License" src="https://img.shields.io/pypi/l/mlcompare?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzk3OTc5NyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNNC41IDEzLjVoN004LjAxIDF2MTIuMDZNMS41IDMuNWgzbDEuNS0xaDRsMS41IDFoM00uNSAxMEwzIDQuNDhMNS41IDEwQzQgMTEgMiAxMSAuNSAxMG0xMCAwTDEzIDQuNDhMMTUuNSAxMGMtMS41IDEtMy41IDEtNSAwIi8%2BPC9zdmc%2B&labelColor=darkred&color=lightgrey">
</a>

<a href="https://mlcompare.readthedocs.io/en/latest/api_reference">
<img alt="Read the Docs" src="https://img.shields.io/readthedocs/mlcompare?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTYiIGhlaWdodD0iMjU2IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGZpbGw9IiM5MGNhZjkiIGQ9Ik00MCA0NUg4VjNoMjJsMTAgMTB6Ii8%2BPHBhdGggZmlsbD0iI2UxZjVmZSIgZD0iTTM4LjUgMTRIMjlWNC41eiIvPjxwYXRoIGZpbGw9IiMxOTc2ZDIiIGQ9Ik0xNiAyMWgxN3YySDE2em0wIDRoMTN2MkgxNnptMCA0aDE3djJIMTZ6bTAgNGgxM3YySDE2eiIvPjwvc3ZnPg%3D%3D&labelColor=white">
</a>&nbsp;
<a href="https://github.com/MitchMedeiros/MLCompare/actions/workflows/lint.yml">
<img alt="GitHub Actions build status (Lint)" src="https://github.com/MitchMedeiros/MLCompare/workflows/Lint/badge.svg">
</a>
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/MitchMedeiros/MLCompare/lint.yml?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTYiIGhlaWdodD0iMjU2IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiNlMzI0MDAiIGQ9Im0xMS4wNzUgMTQuOTVsMS44NS0yLjUyNWwxLjgyNSAyLjUyNUwxOCAxMC41MjVMMTYuNCA5LjM1bC0xLjY1IDIuMjI1TDEyLjkgOS4wNWwtMS44MjUgMi41MjVsLTEuODUtMi41MjVMNiAxMy40NzVsMS42IDEuMTc1bDEuNjI1LTIuMjI1ek0xMiAyMnEtMi4wNzUgMC0zLjktLjc4OHQtMy4xNzUtMi4xMzdUMi43ODggMTUuOVQyIDEydC43ODgtMy45dDIuMTM3LTMuMTc1VDguMSAyLjc4OFQxMiAydDMuOS43ODh0My4xNzUgMi4xMzdUMjEuMjEzIDguMVQyMiAxMnQtLjc4OCAzLjl0LTIuMTM3IDMuMTc1dC0zLjE3NSAyLjEzOFQxMiAyMm0wLTJxMy4zNSAwIDUuNjc1LTIuMzI1VDIwIDEydC0yLjMyNS01LjY3NVQxMiA0VDYuMzI1IDYuMzI1VDQgMTJ0Mi4zMjUgNS42NzVUMTIgMjBtMC04Ii8%2BPC9zdmc%2B&label=Lint&labelColor=lightgreen">
</a>&nbsp;
<a href="https://github.com/MitchMedeiros/MLCompare/actions/workflows/unit-tests.yml">
<img alt="GitHub Actions build status (MacOS Unit Tests)" src="https://github.com/MitchMedeiros/MLCompare/actions/workflows/unit-tests.yml/badge.svg">
</a>
<!-- <a href="https://app.codecov.io/gh/MitchMedeiros/MLCompare">
<img alt="Code coverage" src="https://codecov.io/gh/MitchMedeiros/MLCompare/branch/main/graph/badge.svg">
<img alt="GitHub Actions status (MacOS Unit Tests)" src="https://img.shields.io/github/actions/workflow/status/MitchMedeiros/MLCompare/unit-tests.yml?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCI%2BPHBhdGggZmlsbD0iIzY5Njk2OSIgZD0iTTMxLjUxMiAzMC4zOThoNjEuMzA0YTMuMDA2IDMuMDA2IDAgMCAxIDAgNi4wMTJIMzEuNTEyYTMuMDA3IDMuMDA3IDAgMCAxLTMuMDA0LTMuMDA0YTMuMDEgMy4wMSAwIDAgMSAzLjAwNC0zLjAwOG0wIDAiLz48cGF0aCBmaWxsPSIjMDA5ZmUzIiBkPSJNMzIuMDQ3IDI0LjMySDQ0LjM3djIuODQ0SDMyLjA0N3ptMCAwIi8%2BPHBhdGggZmlsbD0iI2M3ZDMwMiIgZD0iTTQ4LjE2OCAyNC4zMmgxMi4zMjR2Mi44NDRINDguMTY4em0wIDAiLz48cGF0aCBmaWxsPSIjZjA3ZTE2IiBkPSJNNjQuMDcgMjQuMzJoMTIuMzI4djIuODQ0SDY0LjA3em0wIDAiLz48cGF0aCBmaWxsPSIjZGYyODE1IiBkPSJNNzkuOTEgMjQuMzJoMTIuMzI0djIuODQ0SDc5Ljkxem0wIDE1LjIyaDEyLjMyNHYyMC44MzVINzkuOTF6bTAgMCIvPjxwYXRoIGZpbGw9IiNmMDdlMTYiIGQ9Ik02NC4wNyAzOS41NGgxMi4zNTJ2MzMuODQ3SDY0LjA3em0wIDAiLz48cGF0aCBmaWxsPSIjYzdkMzAyIiBkPSJNNDguMTY4IDM5LjU0aDEyLjMyNHY1MC42OThINDguMTY4em0wIDAiLz48cGF0aCBmaWxsPSIjMDA5ZmUzIiBkPSJNMzIuMDQ3IDM5LjU0SDQ0LjM3djYxLjc5MkgzMi4wNDd6bTAgMCIvPjwvc3ZnPg%3D%3D&label=Unit%20Tests&labelColor=darkgreen">
</a>&nbsp;
<a href="https://app.codecov.io/gh/MitchMedeiros/MLCompare">
<img alt="Code Coverage" src="https://img.shields.io/codecov/c/github/MitchMedeiros/MLCopmare?logo=codecov">
</a>
<a href="https://mlcompare.readthedocs.io">
<img alt="Read the Docs" src="https://img.shields.io/badge/Docs-%20?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI%2BPHBhdGggZmlsbD0iI2Y5ZTdjMCIgZD0iTTQzNy41NjcgNTEySDg4LjAwNGE4LjE4MiA4LjE4MiAwIDAgMS04LjE4Mi04LjE4MlY4LjE4MkE4LjE4MiA4LjE4MiAwIDAgMSA4OC4wMDQgMEgyODguNzlsMTU2Ljk2IDE1Ni45NnYzNDYuODU4YTguMTgzIDguMTgzIDAgMCAxLTguMTgzIDguMTgyIi8%2BPHBhdGggZmlsbD0iI2VhYzA4MyIgZ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xMS4xMyAxMS4xM2g3NC45ODVjNi4xNDctLjAwMSAxMS4xMy00Ljk4MyAxMS4xMy0xMS4xM00yOTkuOTIgMzcyLjY4NWMwLTYuMTQ2LTQuOTgzLTExLjEzLTExLjEzLTExLjEzSDEyNi40NTNjLTYuMTQ3IDAtMTEuMTMgNC45ODMtMTEuMTMgMTEuMTNzNC45ODMgMTEuMTMgMTEuMTMgMTEuMTNIMjg4Ljc5YzYuMTQ3LS4wMDEgMTEuMTMtNC45ODQgMTEuMTMtMTEuMTNtNjYuMjEgNzIuODUzYzAtNi4xNDYtNC45ODMtMTEuMTMtMTEuMTMtMTEuMTNIMTI2LjQ1M2MtNi4xNDcgMC0xMS4xMyA0Ljk4My0xMS4xMyAxMS4xM3M0Ljk4MyAxMS4xMyAxMS4xMyAxMS4xM0gzNTVjNi4xNDYgMCAxMS4xMy00Ljk4MyAxMS4xMy0xMS4xMyIvPjwvc3ZnPg%3D%3D&labelColor=teal">
</a> -->
</div>

<br>
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"black>=24.0.0",
"ruff>=0.5.0",
"ipykernel>=6.0.0",
Expand Down Expand Up @@ -72,6 +73,7 @@ packages = ["mlcompare"]
[tool.pytest.ini_options]
testpaths = "tests"
xfail_strict = true
filterwarnings = ["ignore::DeprecationWarning:kaggle.rest"]

[tool.ruff]
line-length = 99
Expand Down
4 changes: 4 additions & 0 deletions tests/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
omit =
./conftest.py
./testing.py

0 comments on commit 2928fc5

Please sign in to comment.