@@ -13,7 +13,7 @@ on: # yamllint disable
13
13
pull_request : ~
14
14
jobs :
15
15
validate_renovate :
16
- runs-on : " ubuntu-20 .04"
16
+ runs-on : " ubuntu-24 .04"
17
17
steps :
18
18
- name : " Check out repository code"
19
19
uses : " actions/checkout@v2"
@@ -22,88 +22,102 @@ jobs:
22
22
with :
23
23
pattern : " renovate.json"
24
24
black :
25
- runs-on : " ubuntu-20 .04"
25
+ runs-on : " ubuntu-24 .04"
26
26
env :
27
27
INVOKE_LOCAL : " True"
28
28
steps :
29
29
- name : " Check out repository code"
30
30
uses : " actions/checkout@v2"
31
31
- name : " Setup environment"
32
- uses : " networktocode/gh-action-setup-poetry-environment@v5"
32
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
33
+ with :
34
+ poetry-version : " 1.8.5"
33
35
- name : " Linting: black"
34
36
run : " poetry run invoke black"
35
37
bandit :
36
- runs-on : " ubuntu-20 .04"
38
+ runs-on : " ubuntu-24 .04"
37
39
env :
38
40
INVOKE_LOCAL : " True"
39
41
steps :
40
42
- name : " Check out repository code"
41
43
uses : " actions/checkout@v2"
42
44
- name : " Setup environment"
43
- uses : " networktocode/gh-action-setup-poetry-environment@v5"
45
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
46
+ with :
47
+ poetry-version : " 1.8.5"
44
48
- name : " Linting: bandit"
45
49
run : " poetry run invoke bandit"
46
50
needs :
47
51
- " black"
48
52
pydocstyle :
49
- runs-on : " ubuntu-20 .04"
53
+ runs-on : " ubuntu-24 .04"
50
54
env :
51
55
INVOKE_LOCAL : " True"
52
56
steps :
53
57
- name : " Check out repository code"
54
58
uses : " actions/checkout@v2"
55
59
- name : " Setup environment"
56
- uses : " networktocode/gh-action-setup-poetry-environment@v5"
60
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
61
+ with :
62
+ poetry-version : " 1.8.5"
57
63
- name : " Linting: pydocstyle"
58
64
run : " poetry run invoke pydocstyle"
59
65
needs :
60
66
- " black"
61
67
flake8 :
62
- runs-on : " ubuntu-20 .04"
68
+ runs-on : " ubuntu-24 .04"
63
69
env :
64
70
INVOKE_LOCAL : " True"
65
71
steps :
66
72
- name : " Check out repository code"
67
73
uses : " actions/checkout@v2"
68
74
- name : " Setup environment"
69
- uses : " networktocode/gh-action-setup-poetry-environment@v5"
75
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
76
+ with :
77
+ poetry-version : " 1.8.5"
70
78
- name : " Linting: flake8"
71
79
run : " poetry run invoke flake8"
72
80
needs :
73
81
- " black"
74
82
mypy :
75
- runs-on : " ubuntu-20 .04"
83
+ runs-on : " ubuntu-24 .04"
76
84
env :
77
85
INVOKE_LOCAL : " True"
78
86
steps :
79
87
- name : " Check out repository code"
80
88
uses : " actions/checkout@v2"
81
89
- name : " Setup environment"
82
- uses : " networktocode/gh-action-setup-poetry-environment@v5"
90
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
91
+ with :
92
+ poetry-version : " 1.8.5"
83
93
- name : " Linting: mypy"
84
94
run : " poetry run invoke mypy"
85
95
needs :
86
96
- " black"
87
97
yamllint :
88
- runs-on : " ubuntu-20 .04"
98
+ runs-on : " ubuntu-24 .04"
89
99
env :
90
100
INVOKE_LOCAL : " True"
91
101
steps :
92
102
- name : " Check out repository code"
93
103
uses : " actions/checkout@v2"
94
104
- name : " Setup environment"
95
- uses : " networktocode/gh-action-setup-poetry-environment@v5"
105
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
106
+ with :
107
+ poetry-version : " 1.8.5"
96
108
- name : " Linting: yamllint"
97
109
run : " poetry run invoke yamllint"
98
110
needs :
99
111
- " black"
100
112
build :
101
- runs-on : " ubuntu-20 .04"
113
+ runs-on : " ubuntu-24 .04"
102
114
steps :
103
115
- name : " Check out repository code"
104
116
uses : " actions/checkout@v2"
105
117
- name : " Setup environment"
106
- uses : " networktocode/gh-action-setup-poetry-environment@v5"
118
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
119
+ with :
120
+ poetry-version : " 1.8.5"
107
121
- name : " Build Container"
108
122
run : " poetry run invoke build"
109
123
needs :
@@ -113,12 +127,14 @@ jobs:
113
127
- " yamllint"
114
128
- " mypy"
115
129
pylint :
116
- runs-on : " ubuntu-20 .04"
130
+ runs-on : " ubuntu-24 .04"
117
131
steps :
118
132
- name : " Check out repository code"
119
133
uses : " actions/checkout@v2"
120
134
- name : " Setup environment"
121
- uses : " networktocode/gh-action-setup-poetry-environment@v5"
135
+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
136
+ with :
137
+ poetry-version : " 1.8.5"
122
138
- name : " Build Container"
123
139
run : " poetry run invoke build"
124
140
- name : " Linting: Pylint"
@@ -129,9 +145,9 @@ jobs:
129
145
strategy :
130
146
fail-fast : true
131
147
matrix :
132
- python-version : ["3.8", "3. 9", "3.10", "3.11"]
133
- poetry-version : ["1.5.1 "]
134
- runs-on : " ubuntu-20 .04"
148
+ python-version : ["3.9", "3.10", "3.11"]
149
+ poetry-version : ["1.8.5 "]
150
+ runs-on : " ubuntu-24 .04"
135
151
env :
136
152
PYTHON_VER : " ${{ matrix.python-version }}"
137
153
steps :
@@ -140,7 +156,7 @@ jobs:
140
156
- name : " Setup environment"
141
157
uses : " networktocode/gh-action-setup-poetry-environment@3ea5d3ecf382cdcb0c74d4c0ff0629d95fce63c7"
142
158
env :
143
- POETRY_VERSION : 1.5.1
159
+ POETRY_VERSION : 1.8.5
144
160
with :
145
161
python-version : " ${{ matrix.python-version }}"
146
162
poetry-version : " ${{ matrix.poetry-version }}"
@@ -154,7 +170,7 @@ jobs:
154
170
- " pylint"
155
171
publish_gh :
156
172
name : " Publish to GitHub"
157
- runs-on : " ubuntu-20 .04"
173
+ runs-on : " ubuntu-24 .04"
158
174
if : " startsWith(github.ref, 'refs/tags/v')"
159
175
steps :
160
176
- name : " Check out repository code"
@@ -183,7 +199,7 @@ jobs:
183
199
- " unittest"
184
200
publish_pypi :
185
201
name : " Push Package to PyPI"
186
- runs-on : " ubuntu-20 .04"
202
+ runs-on : " ubuntu-24 .04"
187
203
if : " startsWith(github.ref, 'refs/tags/v')"
188
204
steps :
189
205
- name : " Check out repository code"
@@ -212,7 +228,7 @@ jobs:
212
228
- " publish_gh"
213
229
- " publish_pypi"
214
230
name : " Send notification to the Slack"
215
- runs-on : " ubuntu-20 .04"
231
+ runs-on : " ubuntu-24 .04"
216
232
env :
217
233
SLACK_WEBHOOK_URL : " ${{ secrets.SLACK_WEBHOOK_URL }}"
218
234
SLACK_MESSAGE : >-
0 commit comments