Skip to content

CI: skip code coverage upload on scheduled tests#27688

Merged
QuLogic merged 2 commits intomatplotlib:mainfrom
tacaswell:ci/pytest_pre
Jan 23, 2024
Merged

CI: skip code coverage upload on scheduled tests#27688
QuLogic merged 2 commits intomatplotlib:mainfrom
tacaswell:ci/pytest_pre

Conversation

@tacaswell
Copy link
Copy Markdown
Member

This is to keep coverage in the test suite up and reduce false-negatives on PRs.

After the pre-release cron job runs the base coverage includes additional uploads.

@tacaswell tacaswell added this to the v3.9.0 milestone Jan 23, 2024
This is to keep coverage in the test suite up
@greglucas
Copy link
Copy Markdown
Contributor

Alternatively, should we just add the logic to not upload to codecov during our weekly scheduled event?

    if: ${{ github.event_name != 'schedule' }}

@tacaswell
Copy link
Copy Markdown
Member Author

oh, that did not even occur to me as an option!

That is probably a better choice.

@tacaswell
Copy link
Copy Markdown
Member Author

I'm happy with either solution I can either squash these commits or drop the second one.

Copy link
Copy Markdown
Contributor

@greglucas greglucas left a comment

Choose a reason for hiding this comment

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

I'm also fine with either version, with a slight preference for how it is now and ignoring code-cov on the more "unique" run to avoid other potential whack-a-mole issues later.

Copy link
Copy Markdown
Member

@rcomer rcomer left a comment

Choose a reason for hiding this comment

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

The current solution also presumably makes the cron job slightly more efficient so makes sense to me.

@QuLogic QuLogic changed the title CI: install pytest pre-release on one py3.12 run CI: skip code coverage upload on scheduled tests Jan 23, 2024
@QuLogic QuLogic merged commit 892ad6d into matplotlib:main Jan 23, 2024
@tacaswell tacaswell deleted the ci/pytest_pre branch January 23, 2024 16:27
@tacaswell tacaswell restored the ci/pytest_pre branch January 25, 2024 14:42
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.

4 participants