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

Modernize CI #574

Merged
merged 4 commits into from
Apr 17, 2023
Merged

Modernize CI #574

merged 4 commits into from
Apr 17, 2023

Conversation

pquentin
Copy link
Member

To unblock #563, this pull request does three main things:

  • It bumps versions in our CI (for GitHub Actions and Python versions)
  • It replaces Codecov with GitHub Artifacts. We don't currently have lines that are only executed in certain jobs but we had in the past and might in the future. For this reason we did not just witch to --fail-under=100 in all jobs.
  • It moves to the src/ layout. (Because this is the only way I could make the above work, by copying what we did on urllib3)

I wished I did not have to do everything at once but the codecov uploader was removed, forcing our hand.

Copy link

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

LGTM, only had one nit.

if-no-files-found: error

coverage:
if: always()

Choose a reason for hiding this comment

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

nit: Is this if necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes! I even plan to add it to urllib3 if you agree. This ensures that the coverage step runs even if some jobs failed (but still waiting for everything to finish).

In urllib3 sometimes one single job fails because of a flaky test and we have no idea if coverage is still at 100% or not. The test suite will still be failing, but that way we don't need to wait for everything to pass to know if coverage is still at 100%. It will also cover the case when as admins we just merge a change even if unrelated tests are failing: we have merged uncovered code in the past like that.

Choose a reason for hiding this comment

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

Ooooo I love that!! TIL! Thanks Quentin!

@pquentin pquentin merged commit 8b7f024 into python-trio:master Apr 17, 2023
18 checks passed
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.

None yet

2 participants