deepcharles / ruptures

ruptures: change point detection in Python
BSD 2-Clause "Simplified" License
1.6k stars 163 forks source link

ci: make coverage computation work #220

Closed oboulant closed 2 years ago

oboulant commented 2 years ago

Coverage reports were not uploaded to codecov. The PR that stops generating coverage reports is :

We noticed it while switching to the new Codecov Uploader due to depreciation of the one we were using (see here for explanations). But, I introduced an error while using the pytest-cov command line options. Indeed, for some reasons, what used to work does not work anymore. Seems like there are some ambiguities while specifying the path the to source to be tested if we do it at the pytest/pytest-cov level (either pointing to the sources or to the package name).

Solution :

codecov[bot] commented 2 years ago

Codecov Report

Merging #220 (5405f10) into master (d2d3097) will increase coverage by 96.71%. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #220       +/-   ##
===========================================
+ Coverage    0.00%   96.71%   +96.71%     
===========================================
  Files          40       40               
  Lines         973      973               
===========================================
+ Hits            0      941      +941     
+ Misses        973       32      -941     
Flag Coverage Δ
unittests 96.71% <ø> (+96.71%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/ruptures/show/display.py 32.35% <0.00%> (+32.35%) :arrow_up:
src/ruptures/base.py 76.92% <0.00%> (+76.92%) :arrow_up:
src/ruptures/utils/utils.py 93.33% <0.00%> (+93.33%) :arrow_up:
src/ruptures/costs/costrank.py 93.33% <0.00%> (+93.33%) :arrow_up:
src/ruptures/__init__.py 100.00% <0.00%> (+100.00%) :arrow_up:
src/ruptures/exceptions.py 100.00% <0.00%> (+100.00%) :arrow_up:
src/ruptures/utils/bnode.py 100.00% <0.00%> (+100.00%) :arrow_up:
src/ruptures/costs/costl1.py 100.00% <0.00%> (+100.00%) :arrow_up:
src/ruptures/costs/costl2.py 100.00% <0.00%> (+100.00%) :arrow_up:
src/ruptures/costs/costml.py 100.00% <0.00%> (+100.00%) :arrow_up:
... and 30 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d2d3097...5405f10. Read the comment docs.