Add 3.9-dev and 3.10-dev via deadsnakes (#1846)
This commit is contained in:
parent
78fbdc3568
commit
5addca7d53
2 changed files with 11 additions and 5 deletions
12
.github/workflows/check.yml
vendored
12
.github/workflows/check.yml
vendored
|
|
@ -38,6 +38,7 @@ jobs:
|
|||
include:
|
||||
- {os: MacOs, py: brew@py3}
|
||||
- {os: MacOs, py: brew@py2}
|
||||
- {os: Ubuntu, py: 3.9-dev}
|
||||
steps:
|
||||
- name: install OS dependencies
|
||||
run: |
|
||||
|
|
@ -55,17 +56,22 @@ jobs:
|
|||
- name: use local virtualenv for tox
|
||||
run: python -m pip install .
|
||||
- name: setup python for test ${{ matrix.py }}
|
||||
if: "!startsWith(matrix.py,'brew@py')"
|
||||
if: "!( startsWith(matrix.py,'brew@py') || endsWith(matrix.py, '-dev') )"
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.py }}
|
||||
- name: load python from ${{ matrix.py }}
|
||||
- name: setup DEV python for test ${{ matrix.py }}
|
||||
uses: deadsnakes/action@v1.0.0
|
||||
if: endsWith(matrix.py, '-dev')
|
||||
with:
|
||||
python-version: ${{ matrix.py }}
|
||||
- name: setup brew python for test ${{ matrix.py }}
|
||||
if: startsWith(matrix.py,'brew@py')
|
||||
run: |
|
||||
import os; import subprocess
|
||||
version = "${{matrix.py}}"[-1]
|
||||
subprocess.check_call(["brew", "install", f"python@{version}"])
|
||||
print(f'::add-path::/usr/local/opt/python@{version}')
|
||||
print(f"::add-path::/usr/local/opt/python@{version}")
|
||||
shell: python
|
||||
- name: pick environment to run
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@ import pytest
|
|||
from virtualenv.discovery.py_info import PythonInfo
|
||||
from virtualenv.run import cli_run
|
||||
from virtualenv.seed.embed.pip_invoke import PipInvoke
|
||||
from virtualenv.seed.embed.wheels import BUNDLE_SUPPORT
|
||||
from virtualenv.seed.embed.wheels import BUNDLE_SUPPORT, MAX
|
||||
from virtualenv.seed.embed.wheels.acquire import BUNDLE_FOLDER
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
@pytest.mark.parametrize("no", ["pip", "setuptools", "wheel", ""])
|
||||
def test_base_bootstrap_via_pip_invoke(tmp_path, coverage_env, mocker, current_fastest, no):
|
||||
bundle_ver = BUNDLE_SUPPORT[PythonInfo.current_system().version_release_str]
|
||||
bundle_ver = BUNDLE_SUPPORT.get(PythonInfo.current_system().version_release_str) or BUNDLE_SUPPORT.get(MAX)
|
||||
|
||||
extra_search_dir = tmp_path / "extra"
|
||||
extra_search_dir.mkdir()
|
||||
|
|
|
|||
Loading…
Reference in a new issue