Skip to content

Commit 5addca7

Browse files
authored
Add 3.9-dev and 3.10-dev via deadsnakes (#1846)
1 parent 78fbdc3 commit 5addca7

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/check.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
include:
3939
- {os: MacOs, py: brew@py3}
4040
- {os: MacOs, py: brew@py2}
41+
- {os: Ubuntu, py: 3.9-dev}
4142
steps:
4243
- name: install OS dependencies
4344
run: |
@@ -55,17 +56,22 @@ jobs:
5556
- name: use local virtualenv for tox
5657
run: python -m pip install .
5758
- name: setup python for test ${{ matrix.py }}
58-
if: "!startsWith(matrix.py,'brew@py')"
59+
if: "!( startsWith(matrix.py,'brew@py') || endsWith(matrix.py, '-dev') )"
5960
uses: actions/setup-python@v2
6061
with:
6162
python-version: ${{ matrix.py }}
62-
- name: load python from ${{ matrix.py }}
63+
- name: setup DEV python for test ${{ matrix.py }}
64+
uses: deadsnakes/[email protected]
65+
if: endsWith(matrix.py, '-dev')
66+
with:
67+
python-version: ${{ matrix.py }}
68+
- name: setup brew python for test ${{ matrix.py }}
6369
if: startsWith(matrix.py,'brew@py')
6470
run: |
6571
import os; import subprocess
6672
version = "${{matrix.py}}"[-1]
6773
subprocess.check_call(["brew", "install", f"python@{version}"])
68-
print(f'::add-path::/usr/local/opt/python@{version}')
74+
print(f"::add-path::/usr/local/opt/python@{version}")
6975
shell: python
7076
- name: pick environment to run
7177
run: |

tests/unit/seed/test_pip_invoke.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
from virtualenv.discovery.py_info import PythonInfo
66
from virtualenv.run import cli_run
77
from virtualenv.seed.embed.pip_invoke import PipInvoke
8-
from virtualenv.seed.embed.wheels import BUNDLE_SUPPORT
8+
from virtualenv.seed.embed.wheels import BUNDLE_SUPPORT, MAX
99
from virtualenv.seed.embed.wheels.acquire import BUNDLE_FOLDER
1010

1111

1212
@pytest.mark.slow
1313
@pytest.mark.parametrize("no", ["pip", "setuptools", "wheel", ""])
1414
def test_base_bootstrap_via_pip_invoke(tmp_path, coverage_env, mocker, current_fastest, no):
15-
bundle_ver = BUNDLE_SUPPORT[PythonInfo.current_system().version_release_str]
15+
bundle_ver = BUNDLE_SUPPORT.get(PythonInfo.current_system().version_release_str) or BUNDLE_SUPPORT.get(MAX)
1616

1717
extra_search_dir = tmp_path / "extra"
1818
extra_search_dir.mkdir()

0 commit comments

Comments
 (0)