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