Skip to content

add Python 3.9-rc to CI build#1742

Merged
oremanj merged 2 commits intomasterfrom
ci_python_39
Oct 1, 2020
Merged

add Python 3.9-rc to CI build#1742
oremanj merged 2 commits intomasterfrom
ci_python_39

Conversation

@belm0
Copy link
Copy Markdown
Member

@belm0 belm0 commented Oct 1, 2020

No description provided.

@belm0 belm0 requested a review from pquentin October 1, 2020 02:32
@belm0
Copy link
Copy Markdown
Member Author

belm0 commented Oct 1, 2020

a naive attempt

must be missing something

Run actions/setup-python@v1
  with:
    python-version: 3.9.0-rc.2
    architecture: x64
Error: Version 3.9.0-rc.2 with arch x64 not found
Available versions:

2.7.18 (x64)
3.5.10 (x64)
3.6.12 (x64)
3.7.9 (x64)
3.8.5 (x64)

@belm0
Copy link
Copy Markdown
Member Author

belm0 commented Oct 1, 2020

I guess Python versions are limited to what's available on the virtual-env pages like https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md

Newer Python versions need to use "setup-python" action?

https://github.com/actions/python-versions
https://github.com/actions/setup-python

@altendky
Copy link
Copy Markdown
Member

altendky commented Oct 1, 2020

Looks like I updated to actions/setup-python v2 over in altendky/qtrio#113 when I was trying to get 3.9. Though I can't say I remember the exact reason so it may not be relevant. I'm using Docker for Linux, so that also isn't relevant, but I did some work to try to get anywhere from alpha through latest release without having to update it.

python-version: '${{ matrix.python }}.0-alpha - ${{ matrix.python }}.X'

@belm0
Copy link
Copy Markdown
Member Author

belm0 commented Oct 1, 2020

@altendky thanks, I'll try

it might be good enough to just hard-code to specific 3.9 releases, keeping it simple

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 1, 2020

Codecov Report

Merging #1742 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1742   +/-   ##
=======================================
  Coverage   99.63%   99.63%           
=======================================
  Files         114      114           
  Lines       14427    14427           
  Branches     1104     1104           
=======================================
  Hits        14375    14375           
  Misses         37       37           
  Partials       15       15           

@belm0
Copy link
Copy Markdown
Member Author

belm0 commented Oct 1, 2020

@altendky
Copy link
Copy Markdown
Member

altendky commented Oct 1, 2020

That's part of why I add an 'all' job that depends on the things I want to require, then I require the 'all' job from GitHub. Albeit with the cost of an extra job spinning up at the end of CI.

@oremanj oremanj merged commit 8f26588 into master Oct 1, 2020
@pquentin pquentin deleted the ci_python_39 branch October 1, 2020 06:44
@pquentin
Copy link
Copy Markdown
Member

pquentin commented Oct 1, 2020

@belm0 Thanks! Please use your personal fork when submitting pull requests

@pquentin
Copy link
Copy Markdown
Member

pquentin commented Oct 1, 2020

By the way we were already testing 3.9-dev in Travis, so may want to remove the check in Travis.

We should also use the name "3.9-dev" in GitHub Actions, as it uses the latest dev 3.9, and does not stay at 3.9.0-rc2 forever. (Hopefully 3.9-0.dev continues to point to master when 3.9 is out, otherwise we'll have to keep using Travis for that.)

@belm0
Copy link
Copy Markdown
Member Author

belm0 commented Oct 1, 2020

Please use your personal fork when submitting pull requests

Sorry, I thought I did. It seems when I edit directly from github it doesn't give me an option.

@belm0
Copy link
Copy Markdown
Member Author

belm0 commented Oct 1, 2020

We should also use the name "3.9-dev" in GitHub Actions, as it uses the latest dev 3.9, and does not stay at 3.9.0-rc2 forever.

@altendky mentioned a better solution if we really want to track latest rc: #1742 (comment). However 3.9 is expected to be released in a week or two, so it didn't seem bad to hard-code it (or at least, much better than having no coverage at all).

I don't think tracking "-dev" is appropriate, since it can change daily and perhaps doesn't go through any QA process.

@altendky
Copy link
Copy Markdown
Member

altendky commented Oct 1, 2020

I thought we wanted both -dev (on Travis) and 'latest (pre)release' (on GitHub Actions). And sure, using the alpha-through-whatever may not matter much for 3.9 but it's some general setup for future versions so they can be easily added as soon as there is any pre-release and not thought about again. But... I haven't even merged this in my own repo... Though I think that relates to my Linux/Docker usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants