Skip to content

Commit

Permalink
Add 3.9-dev and 3.10-dev via deadsnakes
Browse files Browse the repository at this point in the history
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Jun 4, 2020
1 parent 4b146e3 commit 0e71699
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
include:
- {os: MacOs, py: brew@py3}
- {os: MacOs, py: brew@py2}
- {os: Ubuntu, py: 3.9-dev}
- {os: Ubuntu, py: 3.10-dev}
steps:
- name: install OS dependencies
run: |
Expand All @@ -54,18 +56,23 @@ jobs:
- uses: actions/checkout@v2
- name: use local virtualenv for tox
run: python -m pip install ${{ runner.os == 'Windows' && matrix.py == 'pypy3' && 'virtualenv<20' || '.'}}
- name: setup python for test ${{ matrix.py }}
if: "!startsWith(matrix.py,'brew@py')"
- name: setup released python for test ${{ matrix.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

0 comments on commit 0e71699

Please sign in to comment.