Skip to content

Commit

Permalink
Update coverage on Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 21, 2023
1 parent 4bb8e47 commit da1dfe1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Pytest](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/run-tests.yml) [![Lint with pylint](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/linter.yml/badge.svg)](https://github.com/NOAA-GSL/idss-engine-commons/actions/workflows/linter.yml)

<!-- Pytest Coverage Comment:Begin -->
<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/README.md"><img alt="Coverage" src="https://img.shields.io/badge/Coverage-54%25-orange.svg" /></a><details><summary>Coverage Report </summary><table><tr><th>File</th><th>Stmts</th><th>Miss</th><th>Cover</th><th>Missing</th></tr><tbody><tr><td colspan="5"><b>python/idsse_common/idsse/common</b></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/__init__.py">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/aws_utils.py">aws_utils.py</a></td><td>78</td><td>6</td><td>6</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/aws_utils.py#L 92%"> 92%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/config.py">config.py</a></td><td>74</td><td>9</td><td>9</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/config.py#L 88%"> 88%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/json_message.py">json_message.py</a></td><td>22</td><td>22</td><td>22</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/json_message.py#L 0%"> 0%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/log_util.py">log_util.py</a></td><td>38</td><td>38</td><td>38</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/log_util.py#L 0%"> 0%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/path_builder.py">path_builder.py</a></td><td>151</td><td>39</td><td>39</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/path_builder.py#L 74%"> 74%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/publish_confirm.py">publish_confirm.py</a></td><td>141</td><td>141</td><td>141</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/publish_confirm.py#L 0%"> 0%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/utils.py">utils.py</a></td><td>78</td><td>33</td><td>33</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/utils.py#L 58%"> 58%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/validate_schema.py">validate_schema.py</a></td><td>42</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td><b>TOTAL</b></td><td><b>624</b></td><td><b>288</b></td><td><b>54%</b></td><td>&nbsp;</td></tr></tbody></table></details>
<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/README.md"><img alt="Coverage" src="https://img.shields.io/badge/Coverage-18%25-red.svg" /></a><details><summary>Coverage Report </summary><table><tr><th>File</th><th>Stmts</th><th>Miss</th><th>Cover</th><th>Missing</th></tr><tbody><tr><td colspan="5"><b>python/idsse_common/idsse/common</b></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/__init__.py">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td>&nbsp;</td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/aws_utils.py">aws_utils.py</a></td><td>78</td><td>63</td><td>63</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/aws_utils.py#L 19%"> 19%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/config.py">config.py</a></td><td>74</td><td>53</td><td>53</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/config.py#L 28%"> 28%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/grid_proj.py">grid_proj.py</a></td><td>47</td><td>43</td><td>43</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/grid_proj.py#L 9%"> 9%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/json_message.py">json_message.py</a></td><td>22</td><td>22</td><td>22</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/json_message.py#L 0%"> 0%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/log_util.py">log_util.py</a></td><td>38</td><td>38</td><td>38</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/log_util.py#L 0%"> 0%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/path_builder.py">path_builder.py</a></td><td>151</td><td>110</td><td>110</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/path_builder.py#L 27%"> 27%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/publish_confirm.py">publish_confirm.py</a></td><td>141</td><td>141</td><td>141</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/publish_confirm.py#L 0%"> 0%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/utils.py">utils.py</a></td><td>91</td><td>59</td><td>59</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/utils.py#L 35%"> 35%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/python/idsse_common/idsse/common/validate_schema.py">validate_schema.py</a></td><td>42</td><td>35</td><td>35</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main//home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/validate_schema.py#L 17%"> 17%</a></td></tr><tr><td><b>TOTAL</b></td><td><b>684</b></td><td><b>564</b></td><td><b>18%</b></td><td>&nbsp;</td></tr></tbody></table></details>
<!-- Pytest Coverage Comment:End -->

## Overview
Expand Down
50 changes: 30 additions & 20 deletions python/idsse_common/test/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,29 @@
platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0
rootdir: /home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common
plugins: cov-4.1.0
collected 66 items

test_aws_utils.py ............... [ 22%]
test_config.py ............ [ 40%]
test_path_builder.py ..................... [ 72%]
test_utils.py .......... [ 87%]
test_validate_schema.py ........ [100%]
collected 79 items / 1 error

==================================== ERRORS ====================================
___________________ ERROR collecting test/test_grid_proj.py ____________________
ImportError while importing test module '/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/test/test_grid_proj.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_grid_proj.py:18: in <module>
from idsse.common.grid_proj import GridProj, RoundingMethod
../idsse/common/grid_proj.py:17: in <module>
from pyproj import CRS, Transformer
E ModuleNotFoundError: No module named 'pyproj'
=============================== warnings summary ===============================
../idsse/common/validate_schema.py:15
../idsse/common/validate_schema.py:15
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/validate_schema.py:15: DeprecationWarning: Importing Validator directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.protocols instead.
../idsse/common/validate_schema.py:16
../idsse/common/validate_schema.py:16
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/validate_schema.py:16: DeprecationWarning: Importing Validator directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.protocols instead.
from jsonschema import Validator, FormatChecker, RefResolver

../idsse/common/validate_schema.py:15
../idsse/common/validate_schema.py:15
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/validate_schema.py:15: DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
../idsse/common/validate_schema.py:16
../idsse/common/validate_schema.py:16
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/validate_schema.py:16: DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
from jsonschema import Validator, FormatChecker, RefResolver

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Expand All @@ -28,15 +34,19 @@ test_validate_schema.py ........ [100%]
Name Stmts Miss Cover
-----------------------------------------------------------------------------------------------------------------------------------
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/__init__.py 0 0 100%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/aws_utils.py 78 6 92%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/config.py 74 9 88%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/aws_utils.py 78 63 19%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/config.py 74 53 28%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/grid_proj.py 47 43 9%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/json_message.py 22 22 0%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/log_util.py 38 38 0%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/path_builder.py 151 39 74%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/path_builder.py 151 110 27%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/publish_confirm.py 141 141 0%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/utils.py 78 33 58%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/validate_schema.py 42 0 100%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/utils.py 91 59 35%
/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/idsse/common/validate_schema.py 42 35 17%
-----------------------------------------------------------------------------------------------------------------------------------
TOTAL 624 288 54%
TOTAL 684 564 18%

======================== 66 passed, 4 warnings in 0.57s ========================
=========================== short test summary info ============================
ERROR test_grid_proj.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 4 warnings, 1 error in 0.64s =========================
Loading

0 comments on commit da1dfe1

Please sign in to comment.