99
1010jobs :
1111 tests :
12- name : " Python ${{ matrix.python-version }}"
12+ name : " Python ${{ matrix.config. python-version }}"
1313 runs-on : " ubuntu-18.04"
1414 env :
1515 USING_COVERAGE : ' 3.6,3.7,3.8,pypy3,3.9'
1616
1717 strategy :
1818 fail-fast : False
1919 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"}
2126
2227 steps :
2328 - name : Checkout 🛎️
@@ -26,24 +31,24 @@ jobs:
2631 - name : Setup Python 🐍
2732 uses : " actions/setup-python@v2"
2833 with :
29- python-version : " ${{ matrix.python-version }}"
34+ python-version : " ${{ matrix.config. python-version }}"
3035
3136 - name : Install dependencies 🔧
3237 run : |
3338 python -VV
3439 python -m site
3540 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
3742 python -m pip install --upgrade coverage_pyver_pragma
3843
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 }} "
4146
4247
4348 - name : " Upload Coverage"
4449 uses : actions/upload-artifact@v2
4550 with :
46- name : " coverage-${{ matrix.python-version }}"
51+ name : " coverage-${{ matrix.config. python-version }}"
4752 path : .coverage
4853
4954
0 commit comments