38
38
include :
39
39
- {os: MacOs, py: brew@py3}
40
40
- {os: MacOs, py: brew@py2}
41
+ - {os: Ubuntu, py: 3.9-dev}
41
42
steps :
42
43
- name : install OS dependencies
43
44
run : |
@@ -55,17 +56,22 @@ jobs:
55
56
- name : use local virtualenv for tox
56
57
run : python -m pip install .
57
58
- 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') )"
59
60
uses : actions/setup-python@v2
60
61
with :
61
62
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 }}
63
69
if : startsWith(matrix.py,'brew@py')
64
70
run : |
65
71
import os; import subprocess
66
72
version = "${{matrix.py}}"[-1]
67
73
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}" )
69
75
shell : python
70
76
- name : pick environment to run
71
77
run : |
0 commit comments