Skip to content

Commit

Permalink
Add 3.9-dev and 3.10-dev via deadsnakes (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat committed Jun 6, 2020
1 parent 78fbdc3 commit 5addca7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/seed/test_pip_invoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
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()
Expand Down

0 comments on commit 5addca7

Please sign in to comment.