1717
1818jobs :
1919 black :
20- runs-on : " ubuntu-20 .04"
20+ runs-on : " ubuntu-22 .04"
2121 env :
2222 INVOKE_NAUTOBOT_SSOT_LOCAL : " True"
2323 steps :
2424 - name : " Check out repository code"
25- uses : " actions/checkout@v2 "
25+ uses : " actions/checkout@v4 "
2626 - name : " Setup environment"
27- uses : " networktocode/gh-action-setup-poetry-environment@v2"
27+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
28+ with :
29+ poetry-version : " 1.8.5"
2830 - name : " Linting: black"
2931 run : " poetry run invoke black"
3032 bandit :
31- runs-on : " ubuntu-20 .04"
33+ runs-on : " ubuntu-22 .04"
3234 env :
3335 INVOKE_NAUTOBOT_SSOT_LOCAL : " True"
3436 steps :
3537 - name : " Check out repository code"
36- uses : " actions/checkout@v2 "
38+ uses : " actions/checkout@v4 "
3739 - name : " Setup environment"
38- uses : " networktocode/gh-action-setup-poetry-environment@v2"
40+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
41+ with :
42+ poetry-version : " 1.8.5"
3943 - name : " Linting: bandit"
4044 run : " poetry run invoke bandit"
4145 pydocstyle :
42- runs-on : " ubuntu-20 .04"
46+ runs-on : " ubuntu-22 .04"
4347 env :
4448 INVOKE_NAUTOBOT_SSOT_LOCAL : " True"
4549 steps :
4650 - name : " Check out repository code"
47- uses : " actions/checkout@v2 "
51+ uses : " actions/checkout@v4 "
4852 - name : " Setup environment"
49- uses : " networktocode/gh-action-setup-poetry-environment@v2"
53+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
54+ with :
55+ poetry-version : " 1.8.5"
5056 - name : " Linting: pydocstyle"
5157 run : " poetry run invoke pydocstyle"
5258 flake8 :
53- runs-on : " ubuntu-20 .04"
59+ runs-on : " ubuntu-22 .04"
5460 env :
5561 INVOKE_NAUTOBOT_SSOT_LOCAL : " True"
5662 steps :
5763 - name : " Check out repository code"
58- uses : " actions/checkout@v2 "
64+ uses : " actions/checkout@v4 "
5965 - name : " Setup environment"
60- uses : " networktocode/gh-action-setup-poetry-environment@v2"
66+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
67+ with :
68+ poetry-version : " 1.8.5"
6169 - name : " Linting: flake8"
6270 run : " poetry run invoke flake8"
6371 yamllint :
64- runs-on : " ubuntu-20 .04"
72+ runs-on : " ubuntu-22 .04"
6573 env :
6674 INVOKE_NAUTOBOT_SSOT_LOCAL : " True"
6775 steps :
6876 - name : " Check out repository code"
6977 uses : " actions/checkout@v2"
7078 - name : " Setup environment"
71- uses : " networktocode/gh-action-setup-poetry-environment@v2"
79+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
80+ with :
81+ poetry-version : " 1.8.5"
7282 - name : " Linting: yamllint"
7383 run : " poetry run invoke yamllint"
7484 pylint :
@@ -78,20 +88,22 @@ jobs:
7888 - " flake8"
7989 - " yamllint"
8090 - " black"
81- runs-on : " ubuntu-20 .04"
91+ runs-on : " ubuntu-22 .04"
8292 strategy :
8393 fail-fast : true
8494 matrix :
85- python-version : ["3.8 "]
86- nautobot-version : ["1.6.0 "]
95+ python-version : ["3.11 "]
96+ nautobot-version : ["1.6.30 "]
8797 env :
8898 INVOKE_NAUTOBOT_SSOT_PYTHON_VER : " ${{ matrix.python-version }}"
8999 INVOKE_NAUTOBOT_SSOT_NAUTOBOT_VER : " ${{ matrix.nautobot-version }}"
90100 steps :
91101 - name : " Check out repository code"
92- uses : " actions/checkout@v2 "
102+ uses : " actions/checkout@v4 "
93103 - name : " Setup environment"
94- uses : " networktocode/gh-action-setup-poetry-environment@v2"
104+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
105+ with :
106+ poetry-version : " 1.8.5"
95107 - name : " Set up Docker Buildx"
96108 id : " buildx"
97109 uses : " docker/setup-buildx-action@v1"
@@ -137,7 +149,9 @@ jobs:
137149 - name : " Check out repository code"
138150 uses : " actions/checkout@v2"
139151 - name : " Setup environment"
140- uses : " networktocode/gh-action-setup-poetry-environment@v2"
152+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
153+ with :
154+ poetry-version : " 1.8.5"
141155 - name : " Set up Docker Buildx"
142156 id : " buildx"
143157 uses : " docker/setup-buildx-action@v1"
@@ -166,15 +180,15 @@ jobs:
166180 needs :
167181 - " unittest"
168182 name : " Publish to GitHub"
169- runs-on : " ubuntu-20 .04"
183+ runs-on : " ubuntu-22 .04"
170184 if : " startsWith(github.ref, 'refs/tags/v')"
171185 steps :
172186 - name : " Check out repository code"
173- uses : " actions/checkout@v2 "
187+ uses : " actions/checkout@v4 "
174188 - name : " Set up Python"
175- uses : " actions/setup-python@v2 "
189+ uses : " actions/setup-python@v6 "
176190 with :
177- python-version : " 3.9 "
191+ python-version : " 3.11 "
178192 - name : " Install Python Packages"
179193 run : " pip install poetry"
180194 - name : " Set env"
@@ -195,15 +209,15 @@ jobs:
195209 needs :
196210 - " unittest"
197211 name : " Push Package to PyPI"
198- runs-on : " ubuntu-20 .04"
212+ runs-on : " ubuntu-22 .04"
199213 if : " startsWith(github.ref, 'refs/tags/v')"
200214 steps :
201215 - name : " Check out repository code"
202216 uses : " actions/checkout@v2"
203217 - name : " Set up Python"
204- uses : " actions/setup-python@v2 "
218+ uses : " actions/setup-python@v5 "
205219 with :
206- python-version : " 3.9 "
220+ python-version : " 3.11 "
207221 - name : " Install Python Packages"
208222 run : " pip install poetry"
209223 - name : " Set env"
@@ -221,7 +235,7 @@ jobs:
221235 needs :
222236 - " publish_gh"
223237 - " publish_pypi"
224- runs-on : " ubuntu-20 .04"
238+ runs-on : " ubuntu-22 .04"
225239 env :
226240 SLACK_WEBHOOK_URL : " ${{ secrets.SLACK_WEBHOOK_URL }}"
227241 SLACK_MESSAGE : >-
0 commit comments