-
Notifications
You must be signed in to change notification settings - Fork 24
Upgrade pants, Makefile, CI, and scripts #188
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
Upgrade pants, Makefile, CI, and scripts #188
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #188 +/- ##
===========================================
+ Coverage 94.62% 94.64% +0.02%
===========================================
Files 35 35
Lines 1675 1682 +7
===========================================
+ Hits 1585 1592 +7
Misses 90 90
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
.github/workflows/ci.yml
Outdated
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: 3.9 | ||
| uses: actions/checkout@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/checkout@v3 | |
| uses: actions/checkout@v4 |
.github/workflows/lint.yml
Outdated
| - name: Run pre-commit | ||
| uses: pre-commit/[email protected] | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/checkout@v1 | |
| uses: actions/checkout@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, I meant to update all the usages of checkout. Good catch!
pants
The latest version of pants is fairly different from the version we were using - much has changed.
pants.toml) have changed a bitinstall_from_resolvemust be set to use plugins (like pytest-async, pytest-cov, etc.) for supported toolsget-pantsinstaller script to pull in the latest binarypants.tomlfilepantswill be installed to the repo root and can be ran using./pants(similar to before)init-pantsaction is now used, it will set up pants for CIpantsmake-recipe IF it is detected that we're in a CI environment (CIenv-var is set totrue)pants fixruns all the formatters/fixers, whereaspants formatonly runs the formattersmake
As part of upgrading pants, several new recipes are added. Also, to make CI more ergonomic, I've transitioned our workflows to use
makeas much as possible.examples
An example model (examples/weather) is added with configuration to generate a rest-json python client
smithy buildto generate the clientisort issue
When upgrading pants, isort begins to behave strangely
isortbehavior depends on which files are available in the sandbox pantsbuild/pants#15069)::), isort will correctly distinguish 1p and 3p import statements (i.e. pytest)By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.