-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Consider trying pre-commit.ci for autoupdate PRs + faster CI #687
Comments
Yes please! I've been meaning to try out pre-commit.ci but haven't had the time. Would be great if you could evaluate it in webargs then roll it out to the rest of marshmallow-code. 🙏 |
I'd be glad to drop Azure. I've been using Github CI for various repos and I'm happy with it (and its integration in GH). What does pre-commit CI brings that isn't in GH CI already? |
I also want to move other parts of the build to GitHub actions. The UI in GitHub works much better when builds are done in Actions -- perhaps unfortunate, but true. However, I'd still consider doing linting in pre-commit.ci There are three major reasons for that:
I'll try setting it up today. I think someone with admin on the org or repo may need to allow the pre-commit.ci app access, but I don't quite remember. I may need to follow up on that later. |
OK so that's just the linting. Anyway, I'm happy to see how it goes once you set it up here.
Congratulations! You've just been promoted repo admin. |
yeah i'm not opposed to migrating to GH actions. the major blocker was Azure Pipeline's reusable templates feature, but GHA has similar functionality now. |
I configured the pre-commit.ci integration for the webargs repo. I'm a little bit hazy on how the auth details for the process work, but I think there's now a webargs<->pre-commit.ci setup which is not tied to my GitHub user. In other repos, it looked to me like pre-commit.ci picks up on the first pull request event to start builds, so I put in #688 . I can see a build success here: and it's in the status checks for that PR. I'll open a separate issue to discuss using GH Actions. |
In flask-smorest, the release tasks depends on the lint and tests to be successful. https://github.com/marshmallow-code/flask-smorest/blob/master/.github/workflows/build-release.yml Can this be achieved while doing the linting in pre-commit CI rather in GHA itself? |
I don't think so, at least not directly. I wish My approach to this would be to make a different workflow for tag pushes, and have that workflow read almost the same as your Another option is to keep the |
As we now have pre-commit.ci up and running, I'm going to close this. Let's use #689 to discuss moving other builds from Azure to other platforms. |
I recently noticed that typeshed has started using pre-commit.ci: https://results.pre-commit.ci/repo/github/31696383
@sloria, @lafrech, I'm wondering about
webargs
as the first repo to try this, and then rollout to other repos if we like the result.I'm starting to experiment with this on some personal repos today, and, if that works well, I'd like to try this out here.
It doesn't entirely eliminate manual updates -- e.g.
additional_dependencies
need to be updated manually when pinned.The text was updated successfully, but these errors were encountered: