1
1
---
2
2
name : " CI"
3
- concurrency : # Cancel any existing runs of this workflow for this same PR
3
+ concurrency : # Cancel any existing runs of this workflow for this same PR
4
4
group : " ${{ github.workflow }}-${{ github.ref }}"
5
5
cancel-in-progress : true
6
- on : # yamllint disable
6
+ on : # yamllint disable
7
7
push :
8
8
branches :
9
9
- " main"
@@ -13,92 +13,92 @@ on: # yamllint disable
13
13
pull_request : ~
14
14
jobs :
15
15
black :
16
- runs-on : " ubuntu-20 .04"
16
+ runs-on : " ubuntu-24 .04"
17
17
env :
18
18
INVOKE_LOCAL : " True"
19
19
steps :
20
20
- name : " Check out repository code"
21
21
uses : " actions/checkout@v3"
22
22
- name : " Setup environment"
23
- uses : " networktocode/gh-action-setup-poetry-environment@v4 "
23
+ uses : " networktocode/gh-action-setup-poetry-environment@v6 "
24
24
- name : " Linting: black"
25
25
run : " poetry run invoke black"
26
26
bandit :
27
- runs-on : " ubuntu-20 .04"
27
+ runs-on : " ubuntu-24 .04"
28
28
env :
29
29
INVOKE_LOCAL : " True"
30
30
steps :
31
31
- name : " Check out repository code"
32
32
uses : " actions/checkout@v3"
33
33
- name : " Setup environment"
34
- uses : " networktocode/gh-action-setup-poetry-environment@v4 "
34
+ uses : " networktocode/gh-action-setup-poetry-environment@v6 "
35
35
- name : " Linting: bandit"
36
36
run : " poetry run invoke bandit"
37
37
needs :
38
38
- " black"
39
39
pydocstyle :
40
- runs-on : " ubuntu-20 .04"
40
+ runs-on : " ubuntu-24 .04"
41
41
env :
42
42
INVOKE_LOCAL : " True"
43
43
steps :
44
44
- name : " Check out repository code"
45
45
uses : " actions/checkout@v3"
46
46
- name : " Setup environment"
47
- uses : " networktocode/gh-action-setup-poetry-environment@v4 "
47
+ uses : " networktocode/gh-action-setup-poetry-environment@v6 "
48
48
- name : " Linting: pydocstyle"
49
49
run : " poetry run invoke pydocstyle"
50
50
needs :
51
51
- " black"
52
52
flake8 :
53
- runs-on : " ubuntu-20 .04"
53
+ runs-on : " ubuntu-24 .04"
54
54
env :
55
55
INVOKE_LOCAL : " True"
56
56
steps :
57
57
- name : " Check out repository code"
58
58
uses : " actions/checkout@v3"
59
59
- name : " Setup environment"
60
- uses : " networktocode/gh-action-setup-poetry-environment@v4 "
60
+ uses : " networktocode/gh-action-setup-poetry-environment@v6 "
61
61
- name : " Linting: flake8"
62
62
run : " poetry run invoke flake8"
63
63
needs :
64
64
- " black"
65
65
mypy :
66
- runs-on : " ubuntu-20 .04"
66
+ runs-on : " ubuntu-24 .04"
67
67
env :
68
68
INVOKE_LOCAL : " True"
69
69
steps :
70
70
- name : " Check out repository code"
71
71
uses : " actions/checkout@v3"
72
72
- name : " Setup environment"
73
- uses : " networktocode/gh-action-setup-poetry-environment@v4 "
73
+ uses : " networktocode/gh-action-setup-poetry-environment@v6 "
74
74
with :
75
75
poetry-install-options : " --with dev"
76
76
- name : " Linting: flake8"
77
77
run : " poetry run invoke mypy"
78
78
needs :
79
79
- " black"
80
80
yamllint :
81
- runs-on : " ubuntu-20 .04"
81
+ runs-on : " ubuntu-24 .04"
82
82
env :
83
83
INVOKE_LOCAL : " True"
84
84
steps :
85
85
- name : " Check out repository code"
86
86
uses : " actions/checkout@v3"
87
87
- name : " Setup environment"
88
- uses : " networktocode/gh-action-setup-poetry-environment@v4 "
88
+ uses : " networktocode/gh-action-setup-poetry-environment@v6 "
89
89
- name : " Linting: yamllint"
90
90
run : " poetry run invoke yamllint"
91
91
needs :
92
92
- " black"
93
93
pylint :
94
- runs-on : " ubuntu-20 .04"
94
+ runs-on : " ubuntu-24 .04"
95
95
env :
96
96
INVOKE_LOCAL : " True"
97
97
steps :
98
98
- name : " Check out repository code"
99
99
uses : " actions/checkout@v3"
100
100
- name : " Setup environment"
101
- uses : " networktocode/gh-action-setup-poetry-environment@v4 "
101
+ uses : " networktocode/gh-action-setup-poetry-environment@v6 "
102
102
with :
103
103
poetry-install-options : " --with dev"
104
104
- name : " Linting: Pylint"
@@ -118,18 +118,18 @@ jobs:
118
118
include :
119
119
- python-version : " 3.11"
120
120
pydantic : " 1.x"
121
- runs-on : " ubuntu-20 .04"
121
+ runs-on : " ubuntu-24 .04"
122
122
env :
123
123
INVOKE_LOCAL : " True"
124
124
PYTHON_VER : " ${{ matrix.python-version }}"
125
125
steps :
126
126
- name : " Check out repository code"
127
127
uses : " actions/checkout@v3"
128
128
- name : " Setup environment"
129
- uses : " networktocode/gh-action-setup-poetry-environment@v4 "
129
+ uses : " networktocode/gh-action-setup-poetry-environment@v6 "
130
130
with :
131
131
python-version : " ${{ matrix.python-version }}"
132
- poetry-install-options : " --with dev "
132
+ poetry-install-options : " --all-extras "
133
133
- name : " Run poetry Install"
134
134
run : " poetry install"
135
135
- name : " Run poetry Install"
@@ -141,7 +141,7 @@ jobs:
141
141
- " pylint"
142
142
publish_gh :
143
143
name : " Publish to GitHub"
144
- runs-on : " ubuntu-20 .04"
144
+ runs-on : " ubuntu-24 .04"
145
145
if : " startsWith(github.ref, 'refs/tags/v')"
146
146
steps :
147
147
- name : " Check out repository code"
@@ -170,7 +170,7 @@ jobs:
170
170
- " unittest"
171
171
publish_pypi :
172
172
name : " Push Package to PyPI"
173
- runs-on : " ubuntu-20 .04"
173
+ runs-on : " ubuntu-24 .04"
174
174
if : " startsWith(github.ref, 'refs/tags/v')"
175
175
steps :
176
176
- name : " Check out repository code"
@@ -199,7 +199,7 @@ jobs:
199
199
- " publish_gh"
200
200
- " publish_pypi"
201
201
name : " Send notification to the Slack"
202
- runs-on : " ubuntu-20 .04"
202
+ runs-on : " ubuntu-24 .04"
203
203
env :
204
204
SLACK_WEBHOOK_URL : " ${{ secrets.SLACK_WEBHOOK_URL }}"
205
205
SLACK_MESSAGE : >-
0 commit comments