@@ -3,17 +3,20 @@ on: [push]
3
3
jobs :
4
4
run-unit-tests :
5
5
runs-on : ubuntu-latest
6
+ strategy :
7
+ matrix :
8
+ python-version : [3.7, 3.8, 3.9, "3.10"]
6
9
steps :
7
10
# ----------------------------------------------
8
11
# check-out repo and set-up python
9
12
# ----------------------------------------------
10
13
- name : Check out repository
11
14
uses : actions/checkout@v2
12
- - name : Set up python
15
+ - name : Set up python ${{ matrix.python-version }}
13
16
id : setup-python
14
17
uses : actions/setup-python@v2
15
18
with :
16
- python-version : 3.7
19
+ python-version : ${{ matrix.python-version }}
17
20
# ----------------------------------------------
18
21
# ----- install & configure poetry -----
19
22
# ----------------------------------------------
@@ -51,17 +54,20 @@ jobs:
51
54
run : poetry run python -m pytest tests/unit
52
55
check-linting :
53
56
runs-on : ubuntu-latest
57
+ strategy :
58
+ matrix :
59
+ python-version : [3.7, 3.8, 3.9, "3.10"]
54
60
steps :
55
61
# ----------------------------------------------
56
62
# check-out repo and set-up python
57
63
# ----------------------------------------------
58
64
- name : Check out repository
59
65
uses : actions/checkout@v2
60
- - name : Set up python
66
+ - name : Set up python ${{ matrix.python-version }}
61
67
id : setup-python
62
68
uses : actions/setup-python@v2
63
69
with :
64
- python-version : 3.7
70
+ python-version : ${{ matrix.python-version }}
65
71
# ----------------------------------------------
66
72
# ----- install & configure poetry -----
67
73
# ----------------------------------------------
@@ -100,17 +106,20 @@ jobs:
100
106
101
107
check-types :
102
108
runs-on : ubuntu-latest
109
+ strategy :
110
+ matrix :
111
+ python-version : [3.7, 3.8, 3.9, "3.10"]
103
112
steps :
104
113
# ----------------------------------------------
105
114
# check-out repo and set-up python
106
115
# ----------------------------------------------
107
116
- name : Check out repository
108
117
uses : actions/checkout@v2
109
- - name : Set up python
118
+ - name : Set up python ${{ matrix.python-version }}
110
119
id : setup-python
111
120
uses : actions/setup-python@v2
112
121
with :
113
- python-version : 3.7
122
+ python-version : ${{ matrix.python-version }}
114
123
# ----------------------------------------------
115
124
# ----- install & configure poetry -----
116
125
# ----------------------------------------------
@@ -145,4 +154,4 @@ jobs:
145
154
# black the code
146
155
# ----------------------------------------------
147
156
- name : Mypy
148
- run : poetry run mypy src
157
+ run : poetry run mypy src
0 commit comments