@@ -2,45 +2,61 @@ name: Lint pyzeebe
2
2
3
3
on : [push, pull_request]
4
4
5
+
5
6
jobs :
6
7
type-checking :
7
8
runs-on : ubuntu-latest
9
+ strategy :
10
+ matrix :
11
+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
8
12
9
- container : python:3.8
13
+ container : python:${{ matrix.python-version }}
10
14
steps :
11
15
- uses : actions/checkout@v2
16
+ - name : Init python poetry action
17
+ uses : abatilo/actions-poetry@v2.1.3
18
+ with :
19
+ poetry-version : 1.5.1
12
20
- name : Install dependencies
13
- run : |
14
- pip install poetry
15
- poetry install
21
+ run : poetry install
16
22
- name : Lint with mypy
17
23
run : |
18
24
poetry run mypy pyzeebe
19
25
20
26
import-checking :
21
27
runs-on : ubuntu-latest
28
+ strategy :
29
+ matrix :
30
+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
22
31
23
- container : python:3.8
32
+ container : python:${{ matrix.python-version }}
24
33
steps :
25
34
- uses : actions/checkout@v2
35
+ - name : Init python poetry action
36
+ uses : abatilo/actions-poetry@v2.1.3
37
+ with :
38
+ poetry-version : 1.5.1
26
39
- name : Install dependencies
27
- run : |
28
- pip install poetry
29
- poetry install
40
+ run : poetry install
30
41
- name : Check imports
31
42
run : |
32
43
poetry run isort . --check --diff
33
44
34
45
format-checking :
35
46
runs-on : ubuntu-latest
47
+ strategy :
48
+ matrix :
49
+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
36
50
37
- container : python:3.8
51
+ container : python:${{ matrix.python-version }}
38
52
steps :
39
53
- uses : actions/checkout@v2
54
+ - name : Init python poetry action
55
+ uses : abatilo/actions-poetry@v2.1.3
56
+ with :
57
+ poetry-version : 1.5.1
40
58
- name : Install dependencies
41
- run : |
42
- pip install poetry
43
- poetry install
59
+ run : poetry install
44
60
- name : Check imports
45
61
run : |
46
62
poetry run black --check .
0 commit comments