@@ -11,69 +11,81 @@ on: # yamllint disable-line rule:truthy rule:comments
11
11
12
12
jobs :
13
13
black :
14
- runs-on : " ubuntu-20 .04"
14
+ runs-on : " ubuntu-24 .04"
15
15
env :
16
16
INVOKE_LOCAL : " True"
17
17
steps :
18
18
- name : " Check out repository code"
19
- uses : " actions/checkout@v2 "
19
+ uses : " actions/checkout@v4 "
20
20
- name : " Setup environment"
21
- uses : " networktocode/gh-action-setup-poetry-environment@v2"
21
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
22
+ with :
23
+ poetry-version : " 1.8.5"
22
24
- name : " Linting: black"
23
25
run : " poetry run invoke black"
24
26
mypy :
25
- runs-on : " ubuntu-20 .04"
27
+ runs-on : " ubuntu-24 .04"
26
28
env :
27
29
INVOKE_LOCAL : " True"
28
30
steps :
29
31
- name : " Check out repository code"
30
- uses : " actions/checkout@v2 "
32
+ uses : " actions/checkout@v4 "
31
33
- name : " Setup environment"
32
- uses : " networktocode/gh-action-setup-poetry-environment@v2"
34
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
35
+ with :
36
+ poetry-version : " 1.8.5"
33
37
- name : " Linting: mypy"
34
38
run : " poetry run invoke mypy"
35
39
bandit :
36
- runs-on : " ubuntu-20 .04"
40
+ runs-on : " ubuntu-24 .04"
37
41
env :
38
42
INVOKE_LOCAL : " True"
39
43
steps :
40
44
- name : " Check out repository code"
41
- uses : " actions/checkout@v2 "
45
+ uses : " actions/checkout@v4 "
42
46
- name : " Setup environment"
43
- uses : " networktocode/gh-action-setup-poetry-environment@v2"
47
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
48
+ with :
49
+ poetry-version : " 1.8.5"
44
50
- name : " Linting: bandit"
45
51
run : " poetry run invoke bandit"
46
52
pydocstyle :
47
- runs-on : " ubuntu-20 .04"
53
+ runs-on : " ubuntu-24 .04"
48
54
env :
49
55
INVOKE_LOCAL : " True"
50
56
steps :
51
57
- name : " Check out repository code"
52
- uses : " actions/checkout@v2 "
58
+ uses : " actions/checkout@v4 "
53
59
- name : " Setup environment"
54
- uses : " networktocode/gh-action-setup-poetry-environment@v2"
60
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
61
+ with :
62
+ poetry-version : " 1.8.5"
55
63
- name : " Linting: pydocstyle"
56
64
run : " poetry run invoke pydocstyle"
57
65
flake8 :
58
- runs-on : " ubuntu-20 .04"
66
+ runs-on : " ubuntu-24 .04"
59
67
env :
60
68
INVOKE_LOCAL : " True"
61
69
steps :
62
70
- name : " Check out repository code"
63
- uses : " actions/checkout@v2 "
71
+ uses : " actions/checkout@v4 "
64
72
- name : " Setup environment"
65
- uses : " networktocode/gh-action-setup-poetry-environment@v2"
73
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
74
+ with :
75
+ poetry-version : " 1.8.5"
66
76
- name : " Linting: flake8"
67
77
run : " poetry run invoke flake8"
68
78
yamllint :
69
- runs-on : " ubuntu-20 .04"
79
+ runs-on : " ubuntu-24 .04"
70
80
env :
71
81
INVOKE_LOCAL : " True"
72
82
steps :
73
83
- name : " Check out repository code"
74
- uses : " actions/checkout@v2 "
84
+ uses : " actions/checkout@v4 "
75
85
- name : " Setup environment"
76
- uses : " networktocode/gh-action-setup-poetry-environment@v2"
86
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
87
+ with :
88
+ poetry-version : " 1.8.5"
77
89
- name : " Linting: yamllint"
78
90
run : " poetry run invoke yamllint"
79
91
pylint :
84
96
- " yamllint"
85
97
- " black"
86
98
- " mypy"
87
- runs-on : " ubuntu-20 .04"
99
+ runs-on : " ubuntu-24 .04"
88
100
strategy :
89
101
fail-fast : true
90
102
matrix :
@@ -94,9 +106,13 @@ jobs:
94
106
INVOKE_LOCAL : " True"
95
107
steps :
96
108
- name : " Check out repository code"
97
- uses : " actions/checkout@v2 "
109
+ uses : " actions/checkout@v4 "
98
110
- name : " Setup environment"
99
- uses : " networktocode/gh-action-setup-poetry-environment@v2"
111
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
112
+ with :
113
+ poetry-version : " 1.8.5"
114
+ # Default install options is "--only dev", but we need to install all dependencies
115
+ poetry-install-options : " "
100
116
- name : " Linting: Pylint"
101
117
run : " poetry run invoke pylint"
102
118
pytest :
@@ -106,28 +122,32 @@ jobs:
106
122
fail-fast : true
107
123
matrix :
108
124
python-version : ["3.8", "3.9", "3.10", "3.11"]
109
- runs-on : " ubuntu-20 .04"
125
+ runs-on : " ubuntu-24 .04"
110
126
env :
111
127
PYTHON_VER : " ${{ matrix.python-version }}"
112
128
INVOKE_LOCAL : " True"
113
129
steps :
114
130
- name : " Check out repository code"
115
- uses : " actions/checkout@v2 "
131
+ uses : " actions/checkout@v4 "
116
132
- name : " Setup environment"
117
- uses : " networktocode/gh-action-setup-poetry-environment@v2"
133
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
134
+ with :
135
+ poetry-version : " 1.8.5"
136
+ # Default install options is "--only dev", but we need to install all dependencies
137
+ poetry-install-options : " "
118
138
- name : " Run Tests"
119
139
run : " poetry run invoke pytest"
120
140
publish_gh :
121
141
needs :
122
142
- " pytest"
123
143
name : " Publish to GitHub"
124
- runs-on : " ubuntu-20 .04"
144
+ runs-on : " ubuntu-24 .04"
125
145
if : " startsWith(github.ref, 'refs/tags/v')"
126
146
steps :
127
147
- name : " Check out repository code"
128
- uses : " actions/checkout@v2 "
148
+ uses : " actions/checkout@v4 "
129
149
- name : " Set up Python"
130
- uses : " actions/setup-python@v2 "
150
+ uses : " actions/setup-python@v5 "
131
151
with :
132
152
python-version : " 3.9"
133
153
- name : " Install Python Packages"
@@ -150,13 +170,13 @@ jobs:
150
170
needs :
151
171
- " pytest"
152
172
name : " Push Package to PyPI"
153
- runs-on : " ubuntu-20 .04"
173
+ runs-on : " ubuntu-24 .04"
154
174
if : " startsWith(github.ref, 'refs/tags/v')"
155
175
steps :
156
176
- name : " Check out repository code"
157
- uses : " actions/checkout@v2 "
177
+ uses : " actions/checkout@v4 "
158
178
- name : " Set up Python"
159
- uses : " actions/setup-python@v2 "
179
+ uses : " actions/setup-python@v5 "
160
180
with :
161
181
python-version : " 3.9"
162
182
- name : " Install Python Packages"
@@ -177,7 +197,7 @@ jobs:
177
197
- " publish_gh"
178
198
- " publish_pypi"
179
199
name : " Send notification to the Slack"
180
- runs-on : " ubuntu-20 .04"
200
+ runs-on : " ubuntu-24 .04"
181
201
env :
182
202
SLACK_WEBHOOK_URL : " ${{ secrets.SLACK_WEBHOOK_URL }}"
183
203
SLACK_MESSAGE : >-
0 commit comments