-
Notifications
You must be signed in to change notification settings - Fork 584
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
Add support for in-development Python versions #20
Comments
I second this, hope this gets fixed quickly |
(untested, just a suggestion) presumably you can use the same approach we're using on azure pipelines: install via deadsnakes here's some sample code: # for "released" versions (for example 3.8.0b4) use `ppa:deadsnakes` instead of the nightly
sudo add-apt-repository ppa:deadsnakes/nightly
sudo apt-get update
sudo apt-get install -y --no-install-recommends python3.8-dev python3.8-distutils |
Came here to request this as well. Nightly builds would be awesome. |
@madhurig Can we have an update on this please? |
We are still reviewing this and don't have a timeline unfortunately. |
That is frustrating as would love to be able to get rid of Travis and would need support as well to allow failures of certain versions as well like Travis has. Then GH actions will then be a proper one stop shop for python then
…________________________________
From: Madhuri Gummalla <[email protected]>
Sent: Tuesday, February 18, 2020 2:29:50 PM
To: actions/setup-python <[email protected]>
Cc: J.Townsend <[email protected]>; Comment <[email protected]>
Subject: Re: [actions/setup-python] Add support for in-development Python versions (#20)
We are still reviewing this and don't have a timeline unfortunately.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#20?email_source=notifications&email_token=AA3V2QRTL3RKNKJBTH3RZFDRDPWF5A5CNFSM4IUEBUL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMCFP7Q#issuecomment-587487230>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA3V2QXFLNSRTQZ4UOM75X3RDPWF5ANCNFSM4IUEBULQ>.
|
Here is an approach using deadsnakes, based on @asottile's comment above: jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Install Python 3.9
if: matrix.python-version == '3.9'
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install -y --no-install-recommends python3.9-dev python3.9-distutils python3.9-venv
python3.9 -m pip install --upgrade pip setuptools
python3.9 -m venv $HOME/venv-python3.9
echo "::set-env name=VIRTUAL_ENV::$HOME/venv-python3.9"
echo "::add-path::$HOME/venv-python3.9/bin"
- uses: actions/setup-python@v1
if: matrix.python-version != '3.9'
with:
python-version: ${{ matrix.python-version }}
architecture: x64 |
Travis CI has |
@cclauss Perhaps put all the commands in a bash script and run it like |
This issue is here for a long time, it would be very nice of this to resolved so we dont have to repeat the workaround in every new repo. |
Version 2 now allows downloading custom versions, so it would be nice to add the 3.9 beta's to the list (maybe with the caveat that they may be removed after the full release?) |
I decided to package this up into a github action which should make it easier to use -- you can check that out here: deadsnakes/[email protected] if anyone knows how to call the default setup-python action as a fallback, that would be great (then it could seamlessly work without having to do the wacky |
@asottile thanks for that. I've updated my projects to all test on Python 3.9 using the deadsnakes action, works like a (snake) charm(er). |
I've also added 3.10-dev support to the deadsnakes action |
Any idea when this will come to |
We have added support for pre-release Python versions! If you use The We currently only have the In the future, once new pre-release versions are available, they will added to the available versions in actions/python-versions |
Github Actions now supports prerelease builds actions/setup-python#20
Github Actions now supports prerelease builds actions/setup-python#20
Github Actions now supports prerelease builds actions/setup-python#20
Github Actions now supports prerelease builds actions/setup-python#20
Github Actions now supports prerelease builds actions/setup-python#20 Co-authored-by: hauntsaninja <>
This is great, but the |
@agronholm that's a dangerous proposal, wouldn't it mean that when 3.x bumps you suddenly stop testing for 3.x-1? Feels like not a good place to be. |
I think there's a misunderstanding here. Right now the problem is Python 3.10. The specifier |
Something like this?
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9.0-alpha - 3.9.0' # SemVer's version range syntax
- run: python my_script.py |
Could that be modified to allow any patch release after 3.9.0? EDIT: I realize one could do |
Available choices are at https://github.com/actions/python-versions/releases |
@agronholm I just tested with |
FWIW I'd like to be able to specify 3.7, 3.8, 3.9 and 3.10-dev (3.X-dev would be fine, and I'd change to 3.7, 3.8, 3.9, 3.10 and 3.X-dev after 3.10 is released, with any delay ). |
@hugovk What happens with |
I don't think you want 3.11-dev because that would imply you follow the dev branch. This is not the case, you want to follow early releases, so IMHO 3.11.x is a more accurate representation. |
|
Is there any case where specifying a Python version without a stable release, without |
That is the case and is exactly what I'd like. |
I'd expect specifying |
For me |
Whatever you decide, it should be documented, as |
I just tested adding I agree that it needs to be documented however. I would also like to remind you of my proposal in #210, to add adding |
Is it possible to point to the latest stable version? As in whatever the current version is |
|
When developing a Python library, it would be useful to know whether there are any incompatibilities with the upcoming release. So it would be useful to be able to include the latest alpha or beta release in the version matrix used to run my test suite (currently 3.8.0b4).
The text was updated successfully, but these errors were encountered: