Skip to content
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

Specify Python version in CI #1135

Merged
merged 1 commit into from Jun 14, 2022
Merged

Specify Python version in CI #1135

merged 1 commit into from Jun 14, 2022

Conversation

ichard26
Copy link
Member

@ichard26 ichard26 commented Jun 14, 2022

actions/setup-python starting with version 4 doesn't have a default Python version. Also remove useless conditional in doc_build.

Fixes GH-1134.

actions/setup-python starting with version 4 doesn't have a default Python version. 
Also remove useless conditional in doc_build.
@ichard26 ichard26 added the skip news Skip CI check for news/changelog label Jun 14, 2022
@codecov
Copy link

codecov bot commented Jun 14, 2022

Codecov Report

Merging #1135 (f4456b5) into main (231d198) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1135   +/-   ##
=======================================
  Coverage   79.48%   79.48%           
=======================================
  Files          16       16           
  Lines        2608     2608           
  Branches      476      476           
=======================================
  Hits         2073     2073           
  Misses        385      385           
  Partials      150      150           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 231d198...f4456b5. Read the comment docs.

Comment on lines +18 to +19
with:
python-version: "*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does * mean latest available?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so, but I can't find any documentation or code that proves this. @hugovk could you confirm as you provided a similar PR to black earlier?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't find * documented at https://github.com/actions/setup-python. They have:

python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax

For the Black PR, I saw one of the other workflows already had * so I copied and pasted from there!

That was added in psf/black#2260 in commit psf/black@2fcc183 (#2260), and there's no docs reference. Maybe @felix-hilden remembers where it came from? Lucky guess?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stuff works so we can merge and make better if we learn :D Thanks!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc is linked in the PR! But the gist is: it's a SemVer range, so indeed the latest. 3.x would not allow Python 4 versions, which obviously is a huge issue 😉

Comment on lines +18 to +19
with:
python-version: "*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stuff works so we can merge and make better if we learn :D Thanks!

@cooperlees cooperlees merged commit 2935a5e into main Jun 14, 2022
@cooperlees cooperlees deleted the fix-python-action-in-ci branch June 14, 2022 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news Skip CI check for news/changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to GitHub action actions/setup-python@v4 broke docs build
4 participants