dev: Add Codecov Test Analytics to pydantic-core #1684
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.
This PR aims to add Codecov's Test Analytics feature to the pydantic-core repository. With Test Analytics, there are 2 main features:
More information can be found here: https://docs.codecov.com/docs/test-analytics#failed-test-reporting
For this PR the test tab for this branch is now populated: https://app.codecov.io/github/pydantic/pydantic-core/tests/ajay-sentry%3AAjay%2Fcodecov-test-analytics
As more PRs are merged the "main" branch view including the metric dashboard at the top will also be populated, similar to how Codecov's are: https://app.codecov.io/github/codecov/gazebo/tests/main
Change Summary
I saw we were already using the latest version of the codecov action, this PR adds the codecov test results action right below it, keeping the same styling in the file otherwise. I did also need to add the option of creating a junit xml to the pytest setup so that the test results action can pick it up and upload it to codecov though
Related issue number
N/A
Checklist
pydantic-core
(except for expected changes)