-
Notifications
You must be signed in to change notification settings - Fork 41
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
ci: style checks change python version from 3.6 to 3.8 #1080
ci: style checks change python version from 3.6 to 3.8 #1080
Conversation
35db7d8
to
79714b3
Compare
Problem: python 3.6 is end of life and is now cauing failures for the ci pipeline linting and formatting stages. Change python version to 3.8. Change black version to 22.3.0 to fix formatting error from new click release. This only affects the ci linting and formatting checks.
Perhaps this discussion needs to be brought up again, it's been almost 2 years |
79714b3
to
21f466d
Compare
Codecov Report
@@ Coverage Diff @@
## master #1080 +/- ##
========================================
- Coverage 71.6% 71.6% -0.1%
========================================
Files 89 89
Lines 11569 11569
========================================
- Hits 8292 8289 -3
- Misses 3277 3280 +3 |
Python 3.6 is still the |
Eh, though if this is just for style checks maybe its fine? The only worry would be if the new style or lint checks caused a developer to write python that didn't work on 3.6. |
That makes sense, unfortunately it looks like the change was made in the runner image, see here: actions/runner-images#8238 on September 18th. It looks like the other ubuntu image does not support python 3.6 either, so I am not sure if there is a better alternative? |
Yes good point. I don't know of a better alternative at the moment. It does seem fairly low risk to update the runner python versions 🤷 I was just confused at first. |
The runner issue intimates that it may be possible to download and install a non-supported, archived version of Python on the runner: https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#python. I can't find any examples of how to do that, though. That approach might extend the action runtime considerably, too. |
You could make the same argument backwards - if we only use 3.6 here basically any system that isn't a crustacean could run into unforseen issues. A lot of new features have been added since then. If it's just an issue of getting a working (old python from seven years ago lol then why not just install with conda (or miniconda is smaller)? They have versions that go back until the dawn of time. (cue sunrise with dinosaurs). https://repo.anaconda.com/miniconda/ and then |
We do test on python versions 3.6 - 3.10 in CI, so this is unlikely |
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.
This seems fine to me! Thanks!
yay! I love it when the answer to the problem is... what problem? :D |
@grondo can we set merge-when-passing? I ask selfishly because I need this commit :) |
Yes! This is approved so that should work |
boorah!! Thanks everyone!! |
Problem: python 3.6 is end of life and is now cauing failures
for the ci pipeline linting and formatting stages.
Change python version to 3.8. Change black version to 22.3.0
to fix formatting error from new click release. This only
affects the ci linting and formatting checks.