Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added code Coverage #315

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,23 @@ jobs:
- name: Run pytest
working-directory: python
run: poetry run pytest tests -m "not slow"

- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: coverage/**/coverage.cobertura.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
20 changes: 10 additions & 10 deletions docs/js.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,26 +206,26 @@ Returns **[Promise][21]\<ModelResult>** A dictionary containing the top label an

[18]: #parameters-7

[19]: https://github.com/google/magika/blob/217cfaafc902b90092d10112b075cf26c4841c84/js/magika_node.ts#L29-L134 "Source code on GitHub"
[19]: https://github.com/abhin2002/magika/blob/790f9b704bfd87578a49419ed21ce91c5cfc80b9/js/magika_node.ts#L29-L134 "Source code on GitHub"

[20]: https://github.com/google/magika/blob/217cfaafc902b90092d10112b075cf26c4841c84/js/magika_node.ts#L45-L58 "Source code on GitHub"
[20]: https://github.com/abhin2002/magika/blob/790f9b704bfd87578a49419ed21ce91c5cfc80b9/js/magika_node.ts#L45-L58 "Source code on GitHub"

[21]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise

[22]: https://github.com/google/magika/blob/217cfaafc902b90092d10112b075cf26c4841c84/js/magika_node.ts#L66-L69 "Source code on GitHub"
[22]: https://github.com/abhin2002/magika/blob/790f9b704bfd87578a49419ed21ce91c5cfc80b9/js/magika_node.ts#L66-L69 "Source code on GitHub"

[23]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number

[24]: https://github.com/google/magika/blob/217cfaafc902b90092d10112b075cf26c4841c84/js/magika_node.ts#L77-L80 "Source code on GitHub"
[24]: https://github.com/abhin2002/magika/blob/790f9b704bfd87578a49419ed21ce91c5cfc80b9/js/magika_node.ts#L77-L80 "Source code on GitHub"

[25]: https://github.com/google/magika/blob/217cfaafc902b90092d10112b075cf26c4841c84/js/magika_node.ts#L87-L91 "Source code on GitHub"
[25]: https://github.com/abhin2002/magika/blob/790f9b704bfd87578a49419ed21ce91c5cfc80b9/js/magika_node.ts#L87-L91 "Source code on GitHub"

[26]: https://github.com/google/magika/blob/217cfaafc902b90092d10112b075cf26c4841c84/js/magika_node.ts#L98-L101 "Source code on GitHub"
[26]: https://github.com/abhin2002/magika/blob/790f9b704bfd87578a49419ed21ce91c5cfc80b9/js/magika_node.ts#L98-L101 "Source code on GitHub"

[27]: https://github.com/google/magika/blob/217cfaafc902b90092d10112b075cf26c4841c84/js/magika.ts#L27-L123 "Source code on GitHub"
[27]: https://github.com/abhin2002/magika/blob/790f9b704bfd87578a49419ed21ce91c5cfc80b9/js/magika.ts#L27-L123 "Source code on GitHub"

[28]: https://github.com/google/magika/blob/217cfaafc902b90092d10112b075cf26c4841c84/js/magika.ts#L52-L57 "Source code on GitHub"
[28]: https://github.com/abhin2002/magika/blob/790f9b704bfd87578a49419ed21ce91c5cfc80b9/js/magika.ts#L52-L57 "Source code on GitHub"

[29]: https://github.com/google/magika/blob/217cfaafc902b90092d10112b075cf26c4841c84/js/magika.ts#L64-L67 "Source code on GitHub"
[29]: https://github.com/abhin2002/magika/blob/790f9b704bfd87578a49419ed21ce91c5cfc80b9/js/magika.ts#L64-L67 "Source code on GitHub"

[30]: https://github.com/google/magika/blob/217cfaafc902b90092d10112b075cf26c4841c84/js/magika.ts#L74-L77 "Source code on GitHub"
[30]: https://github.com/abhin2002/magika/blob/790f9b704bfd87578a49419ed21ce91c5cfc80b9/js/magika.ts#L74-L77 "Source code on GitHub"