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

Add test coverage checks to CI #223

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from
Draft

Conversation

caiw
Copy link
Member

@caiw caiw commented Apr 5, 2024

Fixes #199

@caiw caiw self-assigned this Apr 5, 2024
@caiw caiw linked an issue Apr 5, 2024 that may be closed by this pull request
@caiw caiw added the ⏸️ blocked/on-hold Blocked or otherwise waiting for something label Apr 5, 2024
@caiw caiw changed the title 199 add test coverage checks to ci Add test coverage checks to CI Apr 5, 2024
@caiw caiw marked this pull request as draft June 14, 2024 16:20
@neukym
Copy link
Member

neukym commented Aug 4, 2024

It should generate this (the manual version):

Name                                                        Stmts   Miss  Cover
-------------------------------------------------------------------------------
kymata/__init__.py                                              0      0   100%
kymata/datasets/__init__.py                                     0      0   100%
kymata/datasets/data_root.py                                   38     18    53%
kymata/datasets/fsaverage.py                                   20      0   100%
kymata/datasets/sample.py                                      78     18    77%
kymata/entities/__init__.py                                     0      0   100%
kymata/entities/datatypes.py                                    8      0   100%
kymata/entities/expression.py                                 215     50    77%
kymata/entities/functions.py                                   12      2    83%
kymata/entities/iterables.py                                   20      3    85%
kymata/entities/sparse_data.py                                 26      0   100%
kymata/io/__init__.py                                           0      0   100%
kymata/io/config.py                                            23     13    43%
kymata/io/file.py                                              17      1    94%
kymata/io/nkg.py                                              140     11    92%
kymata/io/nkg_compatibility.py                                 84      1    99%
kymata/ippm/__init__.py                                         0      0   100%
kymata/ippm/constants.py                                        6      0   100%
kymata/ippm/custom_clusterers.py                              112      1    99%
kymata/ippm/data_tools.py                                     202     98    51%
kymata/ippm/denoising_strategies.py                           106      4    96%
kymata/ippm/ippm_builder.py                                    65      1    98%
kymata/ippm/ippm_plotter.py                                    93     46    51%
kymata/math/__init__.py                                         0      0   100%
kymata/math/p_values.py                                         7      0   100%
kymata/math/rounding.py                                         5      0   100%
kymata/math/vector.py                                          20      6    70%
kymata/plot/__init__.py                                         0      0   100%
kymata/plot/color.py                                            8      1    88%
kymata/plot/layouts.py                                         47      9    81%
kymata/plot/plot.py                                           351    129    63%
tests/__init__.py                                               0      0   100%
tests/test_config.py                                            3      0   100%
tests/test_datasets.py                                         36      0   100%
tests/test_expression.py                                      108      0   100%
tests/test_ippm_builder.py                                     60      0   100%
tests/test_ippm_custom_clusterers_integration_tests.py        111      0   100%
tests/test_ippm_custom_clusterers_unit_tests.py                84      0   100%
tests/test_ippm_data_tools.py                                  99      0   100%
tests/test_ippm_denoising_strategies_integration_tests.py      96      0   100%
tests/test_ippm_denoising_strategies_unit_tests.py            105      0   100%
tests/test_ippm_plotter.py                                     34      0   100%
tests/test_iterables.py                                        24      0   100%
tests/test_plotting.py                                         64      0   100%
tests/test_saveload_nkg.py                                    102      0   100%
tests/test_sparse.py                                           28      0   100%
tests/test_vector.py                                            9      0   100%
-------------------------------------------------------------------------------
TOTAL                                                        2666    412    85%

Copy link
Contributor

github-actions bot commented Aug 4, 2024

Tests coverage table for 67dc212 commit.

pytest-reporter-badge

Name Stmts Miss Cover Missing
kymata/init.py 0 0 100.0%
kymata/datasets/init.py 0 0 100.0%
kymata/datasets/data_root.py 38 18 52.63% 30-31 33-36 38 51-56 58 60 62-63
kymata/datasets/fsaverage.py 20 0 100.0%
kymata/datasets/sample.py 78 20 74.36% 47 53 62 67-68 79-81 105-106 117-119 124-125 136-138
kymata/entities/init.py 0 0 100.0%
kymata/entities/datatypes.py 8 0 100.0%
kymata/entities/expression.py 215 50 76.74% 151 189 193 197 203 207 210 287 350-355 365 375-377 379-387 398 400 470-474 477 485-486 488-494
kymata/entities/functions.py 12 2 83.33% 13
kymata/entities/iterables.py 20 3 85.0% 47
kymata/entities/sparse_data.py 26 0 100.0%
kymata/gridsearch/init.py 0 0 100.0%
kymata/gridsearch/plain.py 96 96 0.0% 1-3 5-7 9-14 16 19 83 85-87 90 92 95 97-100 102 107-111 114 116 119 127-132 134 137-140 143-152 154 160 162 164 166-168 170-171 173 175 177 190-191 197-198 208 210 213 250 253 256-258 261-264 266-268 271-273 277 279-281 284-285
kymata/io/init.py 0 0 100.0%
kymata/io/cli.py 19 19 0.0% 1 3 6 8 11 13 16 41 43-45 47-50 52 54-55
kymata/io/config.py 23 13 43.48% 25-26 44-50 72 75-76
kymata/io/file.py 17 1 94.12%
kymata/io/functions.py 68 68 0.0% 1-3 5-7 9-10 13 16 18 20-25 27-28 30-41 43 45 47-48 51-53 55 57 59-60 62-66 69-74 76 78 80-81 83 90
kymata/io/logging.py 2 2 0.0%
kymata/io/matlab.py 84 84 0.0% 1 3-4 6-8 10-12 15 17-22 25 27 30 39-41 45 51 55-56 59 61-66 68 70-75 78 80-83 85-86 89-90 103 111-113 115-118 121-123 125 129 133 138 146 154-156 158-159 162-164 166 168 171 175 183 187-188 191 195-196
kymata/io/nkg.py 140 11 92.14% 40-41 43 51 144 146 171 200 234 267
kymata/io/nkg_compatibility.py 84 1 98.81%
kymata/ippm/init.py 0 0 100.0%
kymata/ippm/builder.py 49 49 0.0% 1-3 5 7 10 13 19 65 68 70-72 74-77 87 89-90 93-94 96 101 103 105 107-108 112 114 116 118 120 125 127 130-131 133 147-149 151 163-164 166 168-169 171
kymata/ippm/constants.py 6 0 100.0%
kymata/ippm/custom_clusterers.py 112 1 99.11%
kymata/ippm/data_tools.py 202 98 51.49% 79-81 97-108 157-158 161-163 165-167 169-171 173-174 176-177 180-185 188-193 195-203 205-215 217 260 263 271 278 281 400-404 406-407 409-416 444 447-448 450 453-459 461
kymata/ippm/denoising_strategies.py 106 4 96.23% 98-99 149
kymata/ippm/ippm.py 11 11 0.0% 1 3-5 8-9 14-15
kymata/ippm/ippm_builder.py 65 1 98.46%
kymata/ippm/ippm_plotter.py 93 46 50.54% 13-14 17-23 25-26 28-29 31-33 35-39 41 43 70-72 103-104 159-161 163-166 168 170-176 178-179
kymata/ippm/plotter.py 89 89 0.0% 1 3-6 8 11-12 31-38 40-42 44-46 48-49 51-54 56 58 60-61 63 65-67 69-70 72-78 80-81 85 100-105 107 110-112 114-115 117 119 136-139 141 143-144 146-147 150-151 154-155 157 159 161 163 175-176 178-181 183-185
kymata/math/init.py 0 0 100.0%
kymata/math/combinatorics.py 12 0 100.0%
kymata/math/p_values.py 7 0 100.0%
kymata/math/rounding.py 5 0 100.0%
kymata/math/vector.py 20 6 70.0%
kymata/plot/init.py 0 0 100.0%
kymata/plot/color.py 8 1 87.5%
kymata/plot/layouts.py 47 9 80.85% 46 94 99
kymata/plot/plot.py 351 129 63.25% 54 66-67 72 83-84 88-89 94 101-102 106 140-145 148-152 154-156 158 215 224-226 230-233 237 242-243 246-247 266-270 272-276 281-283 379 386 389-390 409 411-414 416 418 425 440-441 455 536-537 539-540 547 556 612-613 615-616 618 626-630 632 634 651 732-733 735-740 742-746 748-749 751-754 756-757 760-764 766-772 774-776 778-779 781 783-784
kymata/preproc/init.py 0 0 100.0%
kymata/preproc/data_cleansing.py 297 297 0.0% 1-3 5-13 15-17 19 21-22 25 37-41 43-45 48 50 52 56 59 61 65-66 70-73 76-79 82-83 85 87 91-93 95 98 103-105 107 110 112 114 117-119 121-123 125-128 130-132 135 137-138 140-141 144 156-157 159 162 172-173 175-176 178 180 182 187 190 194 196 198-199 202-204 206 209 211 216 220 222 225-226 230 233 235-236 238-240 245 247-248 251-252 254-255 257 259-260 262 266 270-273 275-276 278 280 282 284 286 289 293-296 298-299 301 303 305 307 309 312 316-323 326 336 338-339 341-342 344-345 347-358 360-365 367-368 370 379-381 383 385-395 397 400-409 412-414 416-417 419 428-429 432-436 438 441 451 453-454 456-457 459-460 462 464 466 468 470-475 477 479-480 482-483 486 490-492 494 497-498 504-505 508-509 512-515 518-519 521 524 526 528 531 535 538-539 541-542 544-545 547 550 553-558 562 568 573-574 576 578 580 583 586 588
kymata/preproc/hexel_current_estimation.py 147 147 0.0% 1-5 7 9 12 18-20 22 24 107 134 137 142 147 155 157 159 162-164 168-170 172 174 176-177 179-180 182-183 185-186 188-189 192 194 208 212 216 218-223 225 229 232-233 236-237 240-241 246-247 252 258 264 272-273 278-280 286 292-293 300 302 304-317 319-325 327 329-332 334-337 339 344-346 348 361-362 364 377-378 380 393-394 396 409-410 412 425-426 428 441-442 446-448 450 452 454-455 457-458 460-461 463-464 466 468 471 476 479 481 485 492
kymata/preproc/premorph.py 21 21 0.0% 1-3 7 13 15-16 19 32-36 40 42 44 48 52-53 55
kymata/preproc/source.py 167 167 0.0% 1-5 7-9 11-12 14 17 31-32 34-35 37 39-40 42 44-47 49 51-52 54 56-57 59 61 63 65-67 69 73 75-77 81-83 85 89 92 94 97-103 105-106 108 111-112 117-118 121 123-124 134 136-142 147-149 156 159 161 163-164 193-194 196-203 205-221 223 226 232-235 237-240 243-249 254 258-263 266 304 308-309 313 317-318 323 326-327 330-335 338 340-341 344 346 349-350 353 355 357-358 360 363-365 367 369
TOTAL 2765 1464 47.05%

@neukym
Copy link
Member

neukym commented Aug 4, 2024

Getting closer ...

@neukym
Copy link
Member

neukym commented Aug 4, 2024

@caiw caiw removed their assignment Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⏸️ blocked/on-hold Blocked or otherwise waiting for something 💪 enhancement New feature or request 📋 tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add test-coverage checks to CI
2 participants