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: Improve coverage for compiled code #27363

Merged
merged 4 commits into from
Dec 20, 2023
Merged

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Nov 23, 2023

PR summary

This enables coverage for compiled code on macOS GitHub Actions, as well as all platforms on Azure Pipelines.

Unfortunately, I don't see any coverage for the Objective-C macosx backend, even though my testing showed that the flag was passed in there.

PR checklist

@QuLogic QuLogic changed the title ci: Imrpove coverage for compiled code ci: Improve coverage for compiled code Nov 23, 2023
@QuLogic QuLogic force-pushed the better-coverage branch 29 times, most recently from d048da7 to d39310b Compare November 25, 2023 01:52
@QuLogic QuLogic force-pushed the better-coverage branch 13 times, most recently from b74298a to 9810ac5 Compare November 27, 2023 23:53
This condition was when we had Ubuntu 18.04 and added 20.04. When we
dropped 18.04, and moved to 20.04+22.04, this condition should've been
enabled everywhere.
Codecov shows the CI provider, but all jobs are tagged with the overall
workflow ID. Passing a name allows differentiating between each build
(i.e., Python version and system platform.)
@QuLogic
Copy link
Member Author

QuLogic commented Nov 30, 2023

It took several tries (coverage is only in Enterprise, so I can't test locally), but I finally have coverage on Windows with MSVC 2022. No matter what I tried though, I can't figure out MSVC 2019. I left it in there, if someone wants to try for it, but maybe since it's the older version, there's no need to worry about it too much.

The overall codecov status doesn't seem to show any real change, but if you click on through, you can see that the compiled code did increase, but it went from partial to full coverage.

@QuLogic QuLogic marked this pull request as ready for review November 30, 2023 08:41
@QuLogic QuLogic added the CI: testing CI configuration and testing label Nov 30, 2023
@ksunden ksunden merged commit f088368 into matplotlib:main Dec 20, 2023
41 of 42 checks passed
@QuLogic QuLogic deleted the better-coverage branch December 20, 2023 22:13
@QuLogic QuLogic added this to the v3.9.0 milestone Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: testing CI configuration and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants