-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 3.9-dev and 3.10-dev via deadsnakes
Signed-off-by: Bernat Gabor <[email protected]>
- Loading branch information
1 parent
78fbdc3
commit e17523f
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters