Skip to content
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 3.9-dev and 3.10-dev via deadsnakes #1846

Merged
merged 1 commit into from
Jun 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
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