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

pytest: Create xml coverage report for codecov #109

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

tyll
Copy link
Member

@tyll tyll commented Feb 10, 2023

Create the XML coverage report since this is the one that is needed for codecov.

Note: codecov uses some heuristics to find the coverage file and it does not seem to be possible to specify which file to use. The get_coverage.yml playbook is also wrongly identified as a coverage report which can be confusing if the actual report is not identified as one.

Signed-off-by: Till Maas opensource@till.name

https://app.codecov.io/github/linux-system-roles/network/commit/4a5122e94ca922813c7eadfd19568b338794b023 contains a successful run for the Python 3.11 job for reference.
Btw. maybe the coveralls support can be dropped from tox_lsr, not sure if anyone else is using it.

Remark: The current codecov reports seem to be only based on the ansible-test job results and are therefore very basic.

Create the XML coverage report since this is the one that is needed for
codecov.

Note: codecov uses some heuristics to find the coverage file and it does
not seem to be possible to specify which file to use. The
get_coverage.yml playbook is also wrongly identified as a coverage
report which can be confusing if the actual report is not identified as
one.

Signed-off-by: Till Maas <opensource@till.name>
@tyll tyll requested a review from richm February 10, 2023 22:06
@tyll
Copy link
Member Author

tyll commented Feb 10, 2023

FYI: The github workflow also needs to be updated: linux-system-roles/.github#11

@richm richm merged commit ab14427 into linux-system-roles:main Feb 10, 2023
richm pushed a commit to richm/tox-lsr that referenced this pull request Feb 10, 2023
Create the XML coverage report since this is the one that is needed for
codecov.

Note: codecov uses some heuristics to find the coverage file and it does
not seem to be possible to specify which file to use. The
get_coverage.yml playbook is also wrongly identified as a coverage
report which can be confusing if the actual report is not identified as
one.

Signed-off-by: Till Maas <opensource@till.name>
(cherry picked from commit ab14427)
richm added a commit that referenced this pull request Feb 10, 2023
* fix python black issue (#108)

(cherry picked from commit 558c7f7)

* pytest: Create xml coverage report for codecov (#109)

Create the XML coverage report since this is the one that is needed for
codecov.

Note: codecov uses some heuristics to find the coverage file and it does
not seem to be possible to specify which file to use. The
get_coverage.yml playbook is also wrongly identified as a coverage
report which can be confusing if the actual report is not identified as
one.

Signed-off-by: Till Maas <opensource@till.name>
(cherry picked from commit ab14427)

* add safety suppressions

---------

Co-authored-by: Till Maas <opensource@till.name>
richm added a commit to richm/linux-system-roles-network that referenced this pull request Feb 10, 2023
Use tox-lsr version 2.13.2 in order to pick up the codecov
fix.
linux-system-roles/tox-lsr#109

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
tyll pushed a commit to linux-system-roles/network that referenced this pull request Feb 11, 2023
Use tox-lsr version 2.13.2 in order to pick up the codecov
fix.
linux-system-roles/tox-lsr#109

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants