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

ci(tox): fix collecting code coverage information #470

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

tiborsimko
Copy link
Member

Fixes tox configuration with respect to installing all optional package dependencies that are necessary for running various tests.

Fixes tox collecting of code coverage information by forcing editable mode also in the test running instructions.

py39
py310
py311
py312
Copy link
Member Author

@tiborsimko tiborsimko Aug 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: for Python 3.12, to run tox -e py312 locally, we need to first release new pytest-reana that is bumping the limit of the coverage dependency. This is done in reanahub/pytest-reana#134

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ sudo dnf install python3.8 python3.9 python3.10 python3.11 python3.12
$ sudo dnf install python3.10-devel python3.11-devel python3.12-devel
$ tox --skip-env py312
...
  py38: OK (18.81=setup[1.16]+cmd[2.97,14.68] seconds)
  py39: OK (20.63=setup[1.15]+cmd[4.96,14.53] seconds)
  py310: OK (44.40=setup[1.10]+cmd[28.52,14.78] seconds)
  py311: OK (29.10=setup[1.20]+cmd[5.18,22.72] seconds)
  congratulations :) (113.06 seconds)

Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.10%. Comparing base (4816f90) to head (ebf3695).
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #470   +/-   ##
=======================================
  Coverage   37.10%   37.10%           
=======================================
  Files          26       26           
  Lines        1652     1652           
=======================================
  Hits          613      613           
  Misses       1039     1039           

tiborsimko added a commit to tiborsimko/reana-commons that referenced this pull request Aug 22, 2024
Fixes `tox` configuration with respect to installing all optional
package dependencies that are necessary for running various tests.

Fixes `tox` collecting of code coverage information by forcing editable
mode also in the test running instructions.
@tiborsimko tiborsimko changed the title ci(tox): fix dependency installation and code coverage collection ci(tox): fix collecting code coverage information Aug 22, 2024
@tiborsimko tiborsimko self-assigned this Aug 22, 2024
tox.ini Outdated
pytest
pytest-cov
commands =
pip install -e .[all]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tiborsimko added a commit to tiborsimko/reana-commons that referenced this pull request Aug 26, 2024
Fixes `tox` configuration with respect to installing all optional
package dependencies that are necessary for running various tests.

Fixes `tox` collecting of code coverage information by forcing editable
mode when running tests.
Fixes `tox` configuration with respect to installing all optional
package dependencies that are necessary for running various tests.

Fixes `tox` collecting of code coverage information by forcing editable
mode when running tests.
@tiborsimko tiborsimko merged commit ebf3695 into reanahub:master Aug 26, 2024
15 checks passed
@tiborsimko tiborsimko deleted the tox-coverage branch August 26, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants