build: run github actions on pull requests - #27786
Conversation
|
Thanks for the pull request, @regisb! I've created OSPR-5818 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
83d0f16 to
86966a2
Compare
|
This is ready for review. |
|
@regisb Thank you for your contribution. Is this ready for a review? |
|
📣 💥 Heads-up: You must either rebase onto master or merge master into your branch to avoid breaking the build. We recently removed diff-quality and introduced lint-amnesty. This means that the automated quality check that has run on your branch doesn't work the same way it will on master. If you have introduced any quality failures, they might pass on the PR but then break the build on master. This branch has been detected to not have commit 2e33565 as an ancestor. Here's how to see for yourself: If you have any questions, please reach out to the Architecture team (either #edx-shared-architecture on Open edX Slack or #architecture on edX internal). |
|
@regisb Just checking, have you had a chance to implement the feedback provided? |
|
@natabene not yet! I did not have time during the past couple weeks and I'm currently on holidays. I will get back to this PR after I return. |
86966a2 to
24edc5c
Compare
|
This is ready for review again :) |
64c4918 to
a87fd2f
Compare
For now, the only task that is performed is type-checking with mypy. This task was tested with act (https://github.com/nektos/act): act --reuse --workflows .github/workflows/ci-static-analysis.yml "pull_request"
a87fd2f to
1d685f2
Compare
|
Your PR has finished running tests. There were no failures. |
jmbowman
left a comment
There was a problem hiding this comment.
Looks good, thanks for setting this up!
|
@regisb 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
|
FYI, one error snuck in on master while this PR was open: I think Arbi-BOM is going to take care of fixing that one. |
Description
This will run mypy within GitHub actions for every pull request.
Currently, some types are annotated within edx-platform, but they are not actively enforced. This change will make sure that
mypyis run for every PR.Supporting information
See the corresponding discussion: https://discuss.openedx.org/t/dev-notes-running-mypy-on-edx-platform/4860/2
And the previous PR: https://github.com/edx/edx-platform/pull/27575
Other information
Note that running GitHub Actions for every PR might make us hit the usage limits, as installing python requirements is a costly operation.