@@ -5,23 +5,48 @@ name: Python package
55on : [push]
66
77jobs :
8- test :
8+ test-py310 :
99 runs-on : ${{ matrix.os }}
1010 strategy :
1111 max-parallel : 4
1212 matrix :
1313 os : [ubuntu-latest, macos-latest, windows-latest]
14- python-version : [3.7, 3.8, 3.9 ]
14+ python-version : ["3.10" ]
1515
1616 steps :
17- - uses : actions/checkout@v1
17+ - uses : actions/checkout@v3
1818 - name : Set up Python ${{ matrix.python-version }}
19- uses : actions/setup-python@v1
19+ uses : actions/setup-python@v3
2020 with :
2121 python-version : ${{ matrix.python-version }}
2222 - name : Install dependencies
2323 run : |
24- python -m pip install --upgrade pip
24+ python -m pip install -c constraints.txt pip
25+ python -m pip install -c constraints.txt invoke tox
26+ - name : Run tox
27+ env :
28+ TOX_PARALLEL_NO_SPINNER : " 1"
29+ run : |
30+ inv mkdir build/coverage-data
31+ inv tox -e "py310-*"
32+
33+ test-py37-py38-py39 :
34+ runs-on : ${{ matrix.os }}
35+ strategy :
36+ max-parallel : 8
37+ matrix :
38+ os : [ubuntu-latest, macos-latest, windows-latest]
39+ python-version : ["3.7", "3.8", "3.9"]
40+
41+ steps :
42+ - uses : actions/checkout@v3
43+ - name : Set up Python ${{ matrix.python-version }}
44+ uses : actions/setup-python@v3
45+ with :
46+ python-version : ${{ matrix.python-version }}
47+ - name : Install dependencies
48+ run : |
49+ python -m pip install -c constraints.txt pip
2550 python -m pip install -c constraints.txt invoke tox
2651 - name : Run tox
2752 env :
@@ -30,17 +55,42 @@ jobs:
3055 inv mkdir build/coverage-data
3156 inv tox -e "py-*"
3257
58+ test-py36 :
59+ runs-on : ${{ matrix.os }}
60+ strategy :
61+ max-parallel : 4
62+ matrix :
63+ os : [ubuntu-latest, macos-latest, windows-latest]
64+ python-version : ["3.6"]
65+
66+ steps :
67+ - uses : actions/checkout@v3
68+ - name : Set up Python ${{ matrix.python-version }}
69+ uses : actions/setup-python@v3
70+ with :
71+ python-version : ${{ matrix.python-version }}
72+ - name : Install dependencies
73+ run : |
74+ python -m pip install pip==21.3.1
75+ python -m pip install invoke tox
76+ - name : Run tox
77+ env :
78+ TOX_PARALLEL_NO_SPINNER : " 1"
79+ run : |
80+ inv mkdir build/coverage-data
81+ inv tox -e "py36-*"
82+
3383 lint :
3484 runs-on : ubuntu-latest
3585 strategy :
3686 max-parallel : 4
3787 matrix :
38- python-version : [3.9 ]
88+ python-version : ["3.10" ]
3989
4090 steps :
41- - uses : actions/checkout@v1
91+ - uses : actions/checkout@v3
4292 - name : Set up Python ${{ matrix.python-version }}
43- uses : actions/setup-python@v1
93+ uses : actions/setup-python@v3
4494 with :
4595 python-version : ${{ matrix.python-version }}
4696 - name : Install dependencies
0 commit comments