9
9
10
10
jobs :
11
11
tests :
12
- name : " Python ${{ matrix.python-version }}"
12
+ name : " Python ${{ matrix.config. python-version }}"
13
13
runs-on : " ubuntu-18.04"
14
14
env :
15
15
USING_COVERAGE : ' 3.6,3.7,3.8,pypy3,3.9'
16
16
17
17
strategy :
18
18
fail-fast : False
19
19
matrix :
20
- python-version : ["3.6","3.7","3.8","pypy3","3.9"]
20
+ config :
21
+ - {python-version: "3.6", testenvs: "py36,build"}
22
+ - {python-version: "3.7", testenvs: "py37,build"}
23
+ - {python-version: "3.8", testenvs: "py38,build"}
24
+ - {python-version: "pypy3", testenvs: "pypy3,build"}
25
+ - {python-version: "3.9", testenvs: "py39,build"}
21
26
22
27
steps :
23
28
- name : Checkout 🛎️
@@ -26,24 +31,24 @@ jobs:
26
31
- name : Setup Python 🐍
27
32
uses : " actions/setup-python@v2"
28
33
with :
29
- python-version : " ${{ matrix.python-version }}"
34
+ python-version : " ${{ matrix.config. python-version }}"
30
35
31
36
- name : Install dependencies 🔧
32
37
run : |
33
38
python -VV
34
39
python -m site
35
40
python -m pip install --upgrade pip setuptools wheel
36
- python -m pip install --upgrade tox tox-gh-actions virtualenv
41
+ python -m pip install --upgrade tox virtualenv
37
42
python -m pip install --upgrade coverage_pyver_pragma
38
43
39
- - name : " Run Tests for Python ${{ matrix.python-version }}"
40
- run : " python -m tox"
44
+ - name : " Run Tests for Python ${{ matrix.config. python-version }}"
45
+ run : " python -m tox -e ${{ matrix.config.testenvs }} "
41
46
42
47
43
48
- name : " Upload Coverage"
44
49
uses : actions/upload-artifact@v2
45
50
with :
46
- name : " coverage-${{ matrix.python-version }}"
51
+ name : " coverage-${{ matrix.config. python-version }}"
47
52
path : .coverage
48
53
49
54
0 commit comments