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 Jan 5, 2024
1 parent f1db674 commit eea2a44
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 42 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-29%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>idsse/common</b></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/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/idsse/common/aws_utils.py">aws_utils.py</a></td><td>86</td><td>70</td><td>70</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/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/idsse/common/config.py">config.py</a></td><td>68</td><td>48</td><td>48</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/config.py#L 29%"> 29%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/grid_proj.py">grid_proj.py</a></td><td>112</td><td>70</td><td>70</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/grid_proj.py#L 38%"> 38%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/image_utils.py">image_utils.py</a></td><td>81</td><td>75</td><td>75</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/image_utils.py#L 7%"> 7%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/json_message.py">json_message.py</a></td><td>23</td><td>17</td><td>17</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/json_message.py#L 26%"> 26%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/log_util.py">log_util.py</a></td><td>43</td><td>24</td><td>24</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/log_util.py#L 44%"> 44%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/netcdf_io.py">netcdf_io.py</a></td><td>47</td><td>32</td><td>32</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/netcdf_io.py#L 32%"> 32%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/path_builder.py">path_builder.py</a></td><td>128</td><td>84</td><td>84</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/path_builder.py#L 34%"> 34%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/publish_confirm.py">publish_confirm.py</a></td><td>151</td><td>107</td><td>107</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/publish_confirm.py#L 29%"> 29%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/rabbitmq_utils.py">rabbitmq_utils.py</a></td><td>61</td><td>29</td><td>29</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/rabbitmq_utils.py#L 52%"> 52%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/utils.py">utils.py</a></td><td>103</td><td>65</td><td>65</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/utils.py#L 37%"> 37%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/validate_schema.py">validate_schema.py</a></td><td>40</td><td>32</td><td>32</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/validate_schema.py#L 20%"> 20%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/vectaster.py">vectaster.py</a></td><td>163</td><td>134</td><td>134</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/vectaster.py#L 18%"> 18%</a></td></tr><tr><td><b>TOTAL</b></td><td><b>1106</b></td><td><b>787</b></td><td><b>29%</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-94%25-brightgreen.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>idsse/common</b></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/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/idsse/common/aws_utils.py">aws_utils.py</a></td><td>86</td><td>5</td><td>5</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/aws_utils.py#L 94%"> 94%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/config.py">config.py</a></td><td>68</td><td>8</td><td>8</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/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/idsse/common/grid_proj.py">grid_proj.py</a></td><td>112</td><td>2</td><td>2</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/grid_proj.py#L 98%"> 98%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/image_utils.py">image_utils.py</a></td><td>81</td><td>3</td><td>3</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/image_utils.py#L 96%"> 96%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/json_message.py">json_message.py</a></td><td>23</td><td>1</td><td>1</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/json_message.py#L 96%"> 96%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/log_util.py">log_util.py</a></td><td>43</td><td>3</td><td>3</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/log_util.py#L 93%"> 93%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/netcdf_io.py">netcdf_io.py</a></td><td>47</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/idsse/common/path_builder.py">path_builder.py</a></td><td>128</td><td>10</td><td>10</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/path_builder.py#L 92%"> 92%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/publish_confirm.py">publish_confirm.py</a></td><td>151</td><td>13</td><td>13</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/publish_confirm.py#L 91%"> 91%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/rabbitmq_utils.py">rabbitmq_utils.py</a></td><td>61</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/idsse/common/utils.py">utils.py</a></td><td>103</td><td>14</td><td>14</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/utils.py#L 86%"> 86%</a></td></tr><tr><td>&nbsp; &nbsp;<a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/validate_schema.py">validate_schema.py</a></td><td>40</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/idsse/common/vectaster.py">vectaster.py</a></td><td>163</td><td>9</td><td>9</td><td><a href="https://github.com/NOAA-GSL/idss-engine-commons/blob/main/idsse/common/vectaster.py#L 94%"> 94%</a></td></tr><tr><td><b>TOTAL</b></td><td><b>1106</b></td><td><b>68</b></td><td><b>94%</b></td><td>&nbsp;</td></tr></tbody></table></details>
<!-- Pytest Coverage Comment:End -->

## Overview
Expand Down
65 changes: 34 additions & 31 deletions python/idsse_common/test/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@
platform linux -- Python 3.11.7, pytest-7.4.4, pluggy-1.3.0
rootdir: /home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common
plugins: cov-4.1.0
collected 190 items / 1 error
collected 198 items

test/test_aws_utils.py .................. [ 9%]
test/test_config.py ............ [ 15%]
test/test_grid_proj.py ........................ [ 27%]
test/test_image_utils.py ........ [ 31%]
test/test_json_message.py ........... [ 36%]
test/test_log_util.py ..... [ 39%]
test/test_netcdf_io.py .... [ 41%]
test/test_path_builder.py ...................... [ 52%]
test/test_publish_confirm.py ......... [ 57%]
test/test_rabbitmq_utils.py ...... [ 60%]
test/test_utils.py ........................ [ 72%]
test/test_validate_criteria_schema.py ...... [ 75%]
test/test_validate_das_schema.py .............. [ 82%]
test/test_validate_das_web_schema.py ......... [ 86%]
test/test_validate_event_port_schema.py ..... [ 89%]
test/test_validate_new_data_schema.py ......... [ 93%]
test/test_vectaster.py ............ [100%]

==================================== ERRORS ====================================
__________________ ERROR collecting test/test_image_utils.py ___________________
ImportError while importing test module '/home/runner/work/idss-engine-commons/idss-engine-commons/python/idsse_common/test/test_image_utils.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_image_utils.py:17: in <module>
from idsse.common.image_utils import GeoImage
idsse/common/image_utils.py:17: in <module>
from PIL import Image
E ModuleNotFoundError: No module named 'PIL'
=============================== warnings summary ===============================
idsse/common/validate_schema.py:15
idsse/common/validate_schema.py:15
Expand All @@ -29,23 +35,20 @@ idsse/common/validate_schema.py:15
Name Stmts Miss Cover
-----------------------------------------------------
idsse/common/__init__.py 0 0 100%
idsse/common/aws_utils.py 86 70 19%
idsse/common/config.py 68 48 29%
idsse/common/grid_proj.py 112 70 38%
idsse/common/image_utils.py 81 75 7%
idsse/common/json_message.py 23 17 26%
idsse/common/log_util.py 43 24 44%
idsse/common/netcdf_io.py 47 32 32%
idsse/common/path_builder.py 128 84 34%
idsse/common/publish_confirm.py 151 107 29%
idsse/common/rabbitmq_utils.py 61 29 52%
idsse/common/utils.py 103 65 37%
idsse/common/validate_schema.py 40 32 20%
idsse/common/vectaster.py 163 134 18%
idsse/common/aws_utils.py 86 5 94%
idsse/common/config.py 68 8 88%
idsse/common/grid_proj.py 112 2 98%
idsse/common/image_utils.py 81 3 96%
idsse/common/json_message.py 23 1 96%
idsse/common/log_util.py 43 3 93%
idsse/common/netcdf_io.py 47 0 100%
idsse/common/path_builder.py 128 10 92%
idsse/common/publish_confirm.py 151 13 91%
idsse/common/rabbitmq_utils.py 61 0 100%
idsse/common/utils.py 103 14 86%
idsse/common/validate_schema.py 40 0 100%
idsse/common/vectaster.py 163 9 94%
-----------------------------------------------------
TOTAL 1106 787 29%
TOTAL 1106 68 94%

=========================== short test summary info ============================
ERROR test/test_image_utils.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 2 warnings, 1 error in 0.85s =========================
======================= 198 passed, 2 warnings in 1.51s ========================
Loading

0 comments on commit eea2a44

Please sign in to comment.