9
9
matrix :
10
10
python-version : [3.7]
11
11
steps :
12
- - uses : actions/checkout@v1
12
+ - name : Checkout repository
13
+ uses : actions/checkout@v1
13
14
- name : Set up Python ${{ matrix.python-version }}
14
15
uses : actions/setup-python@v1
15
16
with :
29
30
matrix :
30
31
python-version : [3.7]
31
32
steps :
32
- - uses : actions/checkout@v1
33
+ - name : Checkout repository
34
+ uses : actions/checkout@v1
33
35
- name : Set up Python ${{ matrix.python-version }}
34
36
uses : actions/setup-python@v1
35
37
with :
@@ -43,82 +45,27 @@ jobs:
43
45
- name : Run tox
44
46
run : tox -e pep8
45
47
46
- py37 :
47
- runs-on : ubuntu-latest
48
+ tests :
48
49
strategy :
49
50
matrix :
50
- python-version : [3.7]
51
+ python-version : [
52
+ ["3.7", "37"], ["3.8", "38"], ["3.9", "39"], ["3.10", "310"]
53
+ ]
54
+ os : [ubuntu-latest, macos-latest]
55
+ runs-on : ${{ matrix.os }}
56
+ name : ${{ matrix.os }} (${{ matrix.python-version[0] }})
51
57
steps :
52
- - uses : actions/checkout@v1
53
- - name : Set up Python ${{ matrix.python-version }}
54
- uses : actions/setup-python@v1
58
+ - name : Checkout repository
59
+ uses : actions/checkout@v2
60
+ - name : Set up Python ${{ matrix.python-version[0] }}
61
+ uses : actions/setup-python@v2
55
62
with :
56
- python-version : ${{ matrix.python-version }}
57
- - name : Install dependencies
58
- run : |
59
- python -m pip install --upgrade pip
60
- pip install -r requirements.txt
61
- pip install -r test-requirements.txt
62
- pip install tox
63
- - name : Run tox
64
- run : tox -e py37
65
-
66
- py38 :
67
- runs-on : ubuntu-latest
68
- strategy :
69
- matrix :
70
- python-version : [3.8]
71
- steps :
72
- - uses : actions/checkout@v1
73
- - name : Set up Python ${{ matrix.python-version }}
74
- uses : actions/setup-python@v1
75
- with :
76
- python-version : ${{ matrix.python-version }}
77
- - name : Install dependencies
78
- run : |
79
- python -m pip install --upgrade pip
80
- pip install -r requirements.txt
81
- pip install -r test-requirements.txt
82
- pip install tox
83
- - name : Run tox
84
- run : tox -e py38
85
-
86
- py39 :
87
- runs-on : ubuntu-latest
88
- strategy :
89
- matrix :
90
- python-version : [3.9]
91
- steps :
92
- - uses : actions/checkout@v1
93
- - name : Set up Python ${{ matrix.python-version }}
94
- uses : actions/setup-python@v1
95
- with :
96
- python-version : ${{ matrix.python-version }}
97
- - name : Install dependencies
98
- run : |
99
- python -m pip install --upgrade pip
100
- pip install -r requirements.txt
101
- pip install -r test-requirements.txt
102
- pip install tox
103
- - name : Run tox
104
- run : tox -e py39
105
-
106
- py310 :
107
- runs-on : ubuntu-latest
108
- strategy :
109
- matrix :
110
- python-version : ['3.10']
111
- steps :
112
- - uses : actions/checkout@v1
113
- - name : Set up Python ${{ matrix.python-version }}
114
- uses : actions/setup-python@v1
115
- with :
116
- python-version : ${{ matrix.python-version }}
63
+ python-version : ${{ matrix.python-version[0] }}
117
64
- name : Install dependencies
118
65
run : |
119
66
python -m pip install --upgrade pip
120
67
pip install -r requirements.txt
121
68
pip install -r test-requirements.txt
122
69
pip install tox
123
70
- name : Run tox
124
- run : tox -e py310
71
+ run : tox -e py${{ matrix.python-version[1] }}
0 commit comments