Skip to content

Commit d17bbdb

Browse files
committed
tweak python matrixing values
1 parent 14eb405 commit d17bbdb

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@ jobs:
1919
- windows-latest
2020
- macos-latest
2121
python:
22-
- short: 27
23-
dotted: 2.7
24-
- short: 35
25-
dotted: 3.5
26-
- short: 36
27-
dotted: 3.6
28-
- short: 37
29-
dotted: 3.7
22+
- name: CPython 2.7
23+
tox: py27
24+
action: 2.7
25+
- name: CPython 3.5
26+
tox: py35
27+
action: 3.5
28+
- name: CPython 3.6
29+
tox: py36
30+
action: 3.6
31+
- name: CPython 3.7
32+
tox: py37
33+
action: 3.7
3034
reactor:
3135
- default
3236
- qt5
@@ -40,10 +44,10 @@ jobs:
4044
reactor: asyncio
4145
steps:
4246
- uses: actions/checkout@v2
43-
- name: Set up Python ${{ matrix.python.dotted }}
47+
- name: Set up ${{ matrix.python.name }}
4448
uses: actions/setup-python@v1
4549
with:
46-
python-version: ${{ matrix.python.dotted }}
50+
python-version: ${{ matrix.python.action }}
4751
architecture: x64
4852
- name: Install Linux dependencies
4953
if: matrix.system.platform == 'linux'
@@ -58,13 +62,10 @@ jobs:
5862
run: |
5963
import sys
6064
61-
toxenv = '${{ matrix.toxenv }}'
62-
63-
if toxenv == '':
64-
toxenv = 'py${{ matrix.python.short }}-${{ matrix.reactor }}reactor'
65+
toxenv = '${{ matrix.python.tox }}-${{ matrix.reactor }}reactor'
6566
66-
if sys.platform == 'win32':
67-
toxenv = 'win-' + toxenv
67+
if sys.platform == 'win32':
68+
toxenv = 'win-' + toxenv
6869
6970
print('::set-env name=TOXENV::{}'.format(toxenv))
7071
- name: Test

0 commit comments

Comments
 (0)