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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
# This file is part of REANA.
# Copyright (C) 2022, 2023 CERN.
# Copyright (C) 2022, 2023, 2024 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

[tox]
envlist = py38, py39, py310, py311, py312
envlist =
py38
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)


[testenv]
deps = pytest
pytest-cov
commands = pytest {posargs}
deps =
pytest
pytest-cov
commands =
pytest {posargs}
extras =
all
package =
editable
Loading