GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Upload junit reports codecov by aleguy02 · Pull Request #13778 · pytest-dev/pytest

Conversation

@aleguy02

@aleguy02 aleguy02 commented Oct 2, 2025

Copy link
Copy Markdown
Contributor

Description

This PR automates uploading JUnit reports to codecov in the test pipeline. An example pipeline run with the changes can be found here (https://github.com/aleguy02/fork-pytest/actions/runs/18184970357). An example of what the codecov UI looks like with these changes can be found here (https://app.codecov.io/gh/aleguy02/fork-pytest/tests).

Closes #12689

Checklist

  • Include documentation when adding new features.
  • Include new tests or update existing tests when applicable.
  • Allow maintainers to push and squash when merging my commits. Please uncheck this if you prefer to squash the commits yourself.

Additional Notes

I didn't create a changelog since the documented behavior of pytest was not modified.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bluetech bluetech added the skip news used on prs to opt out of the changelog requirement label Oct 3, 2025
webknjaz
webknjaz reviewed Nov 8, 2025
View reviewed changes

@webknjaz webknjaz left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

It's a great start! I normally avoid adding --junitxml= (even if the path value is empty) to normal/local invocations. Instead, I like adding the entire CLI flag in the CI definition: https://github.com/cherrypy/cheroot/blob/06a6d67e549ccaefe332cd0539c21e1483031071/.github/workflows/ci-cd.yml#L786.

I've made suggestions below. Let's see if that works..


As for the change note, sometimes it's a good idea to use the contrib type for such changes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread tox.ini Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread .github/workflows/test.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread .github/workflows/test.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tox.ini Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tox.ini Resolved

Uh oh!

There was an error while loading. Please reload this page.

@aleguy02

aleguy02 commented Nov 22, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Do you recommend doing this because it is cleaner to have the entire CLI flag in one place instead of splitting it across the workflow and tox.ini file? If so that makes perfect sense (I'm asking for my personal learning) @webknjaz

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aleguy02 and others added 8 commits November 22, 2025 13:13
@aleguy02
update codecov token
ac8efe1
@aleguy02
Add upload junit to codecov from CI
59a49f5
@aleguy02
Specify upload type
3fec230
@aleguy02
add name to AUTHORS
c5d3ae4
@aleguy02
restore codecov token
3d7b325
@aleguy02 @webknjaz
Apply suggestions from code review
64b9635
pass entire CLI flag in workflow

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@aleguy02
add changelog file
8f484d2
@pre-commit-ci @aleguy02
[pre-commit.ci] auto fixes from pre-commit.com hooks
6af094b
for more information, see https://pre-commit.ci
@aleguy02
aleguy02 force-pushed the upload-junit-reports-codecov branch from 3e622d3 to 6af094b Compare November 22, 2025 18:13
@webknjaz webknjaz removed the skip news used on prs to opt out of the changelog requirement label Nov 25, 2025
@pyba-chronographer pyba-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Nov 25, 2025
webknjaz
webknjaz reviewed Nov 25, 2025
View reviewed changes
Comment thread changelog/12689.contrib.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

webknjaz
webknjaz reviewed Nov 25, 2025
View reviewed changes
Comment thread .github/workflows/test.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

webknjaz
webknjaz reviewed Nov 25, 2025
View reviewed changes
Comment thread .github/workflows/test.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

webknjaz
webknjaz reviewed Nov 25, 2025
View reviewed changes
Comment thread .github/workflows/test.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@webknjaz

webknjaz commented Nov 25, 2025

Copy link
Copy Markdown
Member

Do you recommend doing this because it is cleaner to have the entire CLI flag in one place instead of splitting it across the workflow and tox.ini file? If so that makes perfect sense (I'm asking for my personal learning)

Perhaps. But this is more due to the fact that configuration should be where it belongs. If you add a --junitxml= to tox.ini, that configuration will also be picked up in local runs, when the contributors invoke tox on their computers. Setting it only in CI prevents that.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@webknjaz
webknjaz requested review from RonnyPfannschmidt, bluetech and nicoddemus November 25, 2025 23:52
@webknjaz webknjaz added type: infrastructure improvement to development/releases/CI structure backport 9.0.x labels Nov 25, 2025
nicoddemus
nicoddemus requested changes Nov 26, 2025
View reviewed changes

@nicoddemus nicoddemus left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Overall looks good, thanks @aleguy02.

Please see the requested changes by @webknjaz. 👍

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aleguy02 reacted with eyes emoji
All reactions
  • 👀 1 reaction
aleguy02 and others added 5 commits January 24, 2026 16:39
@aleguy02
Merge branch 'main' into upload-junit-reports-codecov
3497b92
@aleguy02
Merge branch 'main' into upload-junit-reports-codecov
55e86f2
@aleguy02 @webknjaz
Update changelog/12689.contrib.rst
0ddf14a
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@aleguy02 @webknjaz
Update .github/workflows/test.yml
202fa56
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@aleguy02 @webknjaz
Update .github/workflows/test.yml
9537c5e
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@aleguy02 @webknjaz
Update .github/workflows/test.yml
b07e164
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@webknjaz
webknjaz requested a review from nicoddemus February 11, 2026 15:22
webknjaz
webknjaz approved these changes Feb 11, 2026
View reviewed changes

@webknjaz webknjaz left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This seems fine.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@webknjaz
webknjaz enabled auto-merge February 11, 2026 15:41
@webknjaz webknjaz assigned nicoddemus Feb 11, 2026
@webknjaz webknjaz mentioned this pull request Feb 11, 2026
[TODO] Upload JUnit reports to Codecov #12689
Closed
@nicoddemus
nicoddemus disabled auto-merge February 11, 2026 16:25
nicoddemus
nicoddemus approved these changes Feb 11, 2026
View reviewed changes

@nicoddemus nicoddemus left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Yeah seems to be working based on the CI output.

Thanks @aleguy02 for the contribution and sticking with it!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

webknjaz and aleguy02 reacted with heart emoji
All reactions
  • ❤️ 2 reactions
@nicoddemus
nicoddemus merged commit bda18de into pytest-dev:main Feb 11, 2026
31 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@patchback

patchback Bot commented Feb 11, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Backport to 9.0.x: 💚 backport PR created

✅ Backport PR branch: patchback/backports/9.0.x/bda18de6ab84023bd08baf620bc2430f41eb4b5c/pr-13778

Backported as #14182

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

patchback Bot pushed a commit that referenced this pull request Feb 11, 2026
@aleguy02 @patchback
Upload junit reports codecov (#13778)
4c11ce6
Automate uploading JUnit reports to codecov in the test pipeline.

An example pipeline run with the changes can be found here (https://github.com/aleguy02/fork-pytest/actions/runs/18184970357). An example of what the codecov UI looks like with these changes can be found here (https://app.codecov.io/gh/aleguy02/fork-pytest/tests).

Closes #12689

(cherry picked from commit bda18de)
@patchback patchback Bot mentioned this pull request Feb 11, 2026
[PR #13778/bda18de6 backport][9.0.x] Upload junit reports codecov #14182
Merged
1 of 3 tasks
webknjaz added a commit that referenced this pull request Feb 11, 2026
@webknjaz
Merge pull request #14182 from pytest-dev/patchback/backports/9.0.x/b…
11557b2
…da18de6ab84023bd08baf620bc2430f41eb4b5c/pr-13778

[PR #13778/bda18de6 backport][9.0.x] Upload junit reports codecov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@webknjaz webknjaz webknjaz approved these changes
@nicoddemus nicoddemus nicoddemus approved these changes
@RonnyPfannschmidt RonnyPfannschmidt Awaiting requested review from RonnyPfannschmidt
@bluetech bluetech Awaiting requested review from bluetech

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@nicoddemus nicoddemus

Labels

bot:chronographer:provided (automation) changelog entry is part of PR type: infrastructure improvement to development/releases/CI structure

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[TODO] Upload JUnit reports to Codecov

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@aleguy02 @webknjaz @nicoddemus @bluetech
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.