@@ -3,17 +3,20 @@ on: [push]
33jobs :
44 run-unit-tests :
55 runs-on : ubuntu-latest
6+ strategy :
7+ matrix :
8+ python-version : [3.7, 3.8, 3.9, "3.10"]
69 steps :
710 # ----------------------------------------------
811 # check-out repo and set-up python
912 # ----------------------------------------------
1013 - name : Check out repository
1114 uses : actions/checkout@v2
12- - name : Set up python
15+ - name : Set up python ${{ matrix.python-version }}
1316 id : setup-python
1417 uses : actions/setup-python@v2
1518 with :
16- python-version : 3.7
19+ python-version : ${{ matrix.python-version }}
1720 # ----------------------------------------------
1821 # ----- install & configure poetry -----
1922 # ----------------------------------------------
@@ -51,17 +54,20 @@ jobs:
5154 run : poetry run python -m pytest tests/unit
5255 check-linting :
5356 runs-on : ubuntu-latest
57+ strategy :
58+ matrix :
59+ python-version : [3.7, 3.8, 3.9, "3.10"]
5460 steps :
5561 # ----------------------------------------------
5662 # check-out repo and set-up python
5763 # ----------------------------------------------
5864 - name : Check out repository
5965 uses : actions/checkout@v2
60- - name : Set up python
66+ - name : Set up python ${{ matrix.python-version }}
6167 id : setup-python
6268 uses : actions/setup-python@v2
6369 with :
64- python-version : 3.7
70+ python-version : ${{ matrix.python-version }}
6571 # ----------------------------------------------
6672 # ----- install & configure poetry -----
6773 # ----------------------------------------------
@@ -100,17 +106,20 @@ jobs:
100106
101107 check-types :
102108 runs-on : ubuntu-latest
109+ strategy :
110+ matrix :
111+ python-version : [3.7, 3.8, 3.9, "3.10"]
103112 steps :
104113 # ----------------------------------------------
105114 # check-out repo and set-up python
106115 # ----------------------------------------------
107116 - name : Check out repository
108117 uses : actions/checkout@v2
109- - name : Set up python
118+ - name : Set up python ${{ matrix.python-version }}
110119 id : setup-python
111120 uses : actions/setup-python@v2
112121 with :
113- python-version : 3.7
122+ python-version : ${{ matrix.python-version }}
114123 # ----------------------------------------------
115124 # ----- install & configure poetry -----
116125 # ----------------------------------------------
@@ -145,4 +154,4 @@ jobs:
145154 # black the code
146155 # ----------------------------------------------
147156 - name : Mypy
148- run : poetry run mypy src
157+ run : poetry run mypy src
0 commit comments