1717
1818jobs :
1919 ruff-format :
20- runs-on : " ubuntu-22.04 "
20+ runs-on : " ubuntu-latest "
2121 env :
2222 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " True"
2323 steps :
@@ -26,11 +26,11 @@ jobs:
2626 - name : " Setup environment"
2727 uses : " networktocode/gh-action-setup-poetry-environment@v6"
2828 with :
29- poetry-version : " 1.8.5 "
29+ poetry-version : " 2.1.3 "
3030 - name : " Linting: ruff format"
3131 run : " poetry run invoke ruff --action format"
3232 ruff-lint :
33- runs-on : " ubuntu-22.04 "
33+ runs-on : " ubuntu-latest "
3434 env :
3535 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " True"
3636 steps :
@@ -39,11 +39,11 @@ jobs:
3939 - name : " Setup environment"
4040 uses : " networktocode/gh-action-setup-poetry-environment@v6"
4141 with :
42- poetry-version : " 1.8.5 "
42+ poetry-version : " 2.1.3 "
4343 - name : " Linting: ruff"
4444 run : " poetry run invoke ruff --action lint"
4545 check-docs-build :
46- runs-on : " ubuntu-22.04 "
46+ runs-on : " ubuntu-latest "
4747 env :
4848 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " True"
4949 steps :
@@ -52,11 +52,12 @@ jobs:
5252 - name : " Setup environment"
5353 uses : " networktocode/gh-action-setup-poetry-environment@v6"
5454 with :
55- poetry-version : " 1.8.5"
55+ poetry-version : " 2.1.3"
56+ poetry-install-options : " --only dev,docs"
5657 - name : " Check Docs Build"
5758 run : " poetry run invoke build-and-check-docs"
5859 poetry :
59- runs-on : " ubuntu-22.04 "
60+ runs-on : " ubuntu-latest "
6061 env :
6162 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " True"
6263 steps :
@@ -65,11 +66,11 @@ jobs:
6566 - name : " Setup environment"
6667 uses : " networktocode/gh-action-setup-poetry-environment@v6"
6768 with :
68- poetry-version : " 1.8.5 "
69+ poetry-version : " 2.1.3 "
6970 - name : " Checking: poetry lock file"
7071 run : " poetry run invoke lock --check"
7172 yamllint :
72- runs-on : " ubuntu-22.04 "
73+ runs-on : " ubuntu-latest "
7374 env :
7475 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " True"
7576 steps :
@@ -78,11 +79,11 @@ jobs:
7879 - name : " Setup environment"
7980 uses : " networktocode/gh-action-setup-poetry-environment@v6"
8081 with :
81- poetry-version : " 1.8.5 "
82+ poetry-version : " 2.1.3 "
8283 - name : " Linting: yamllint"
8384 run : " poetry run invoke yamllint"
8485 markdownlint :
85- runs-on : " ubuntu-22.04 "
86+ runs-on : " ubuntu-latest "
8687 env :
8788 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " True"
8889 steps :
9192 - name : " Setup environment"
9293 uses : " networktocode/gh-action-setup-poetry-environment@v6"
9394 with :
94- poetry-version : " 1.8.5 "
95+ poetry-version : " 2.1.3 "
9596 - name : " Linting: markdownlint"
9697 run : " poetry run invoke markdownlint"
9798 check-in-docker :
@@ -101,7 +102,7 @@ jobs:
101102 - " poetry"
102103 - " yamllint"
103104 - " markdownlint"
104- runs-on : " ubuntu-22.04 "
105+ runs-on : " ubuntu-latest "
105106 strategy :
106107 fail-fast : true
107108 matrix :
@@ -116,11 +117,12 @@ jobs:
116117 - name : " Setup environment"
117118 uses : " networktocode/gh-action-setup-poetry-environment@v6"
118119 with :
119- poetry-version : " 1.8.5 "
120+ poetry-version : " 2.1.3 "
120121 - name : " Constrain Nautobot version and regenerate lock file"
121122 env :
122123 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " true"
123- run : " poetry run invoke lock --constrain-nautobot-ver --constrain-python-ver"
124+ PY_CONSTRAINT : " ${{ matrix.python-version == '3.9' && '3.9.2' || matrix.python-version }}"
125+ run : " poetry run invoke lock --constrain-nautobot-ver --constrain-python-ver=${{ env.PY_CONSTRAINT }}"
124126 - name : " Set up Docker Buildx"
125127 id : " buildx"
126128 uses : " docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
@@ -154,7 +156,7 @@ jobs:
154156 python-version : ["3.9"] # 3.12 2.4 is tested in unittest_report stage.
155157 db-backend : ["postgresql"]
156158 nautobot-version : ["2.4.9"]
157- runs-on : " ubuntu-22.04 "
159+ runs-on : " ubuntu-latest "
158160 env :
159161 INVOKE_NAUTOBOT_NETBOX_IMPORTER_PYTHON_VER : " ${{ matrix.python-version }}"
160162 INVOKE_NAUTOBOT_NETBOX_IMPORTER_NAUTOBOT_VER : " ${{ matrix.nautobot-version }}"
@@ -164,11 +166,12 @@ jobs:
164166 - name : " Setup environment"
165167 uses : " networktocode/gh-action-setup-poetry-environment@v6"
166168 with :
167- poetry-version : " 1.8.5 "
169+ poetry-version : " 2.1.3 "
168170 - name : " Constrain Nautobot version and regenerate lock file"
169171 env :
170172 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " true"
171- run : " poetry run invoke lock --constrain-nautobot-ver --constrain-python-ver"
173+ PY_CONSTRAINT : " ${{ matrix.python-version == '3.9' && '3.9.2' || matrix.python-version }}"
174+ run : " poetry run invoke lock --constrain-nautobot-ver --constrain-python-ver=${{ env.PY_CONSTRAINT }}"
172175 - name : " Set up Docker Buildx"
173176 id : " buildx"
174177 uses : " docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
@@ -202,7 +205,7 @@ jobs:
202205 python-version : ["3.12"]
203206 db-backend : ["postgresql"]
204207 nautobot-version : ["2.4"]
205- runs-on : " ubuntu-22.04 "
208+ runs-on : " ubuntu-latest "
206209 permissions :
207210 pull-requests : " write"
208211 contents : " write"
@@ -215,11 +218,12 @@ jobs:
215218 - name : " Setup environment"
216219 uses : " networktocode/gh-action-setup-poetry-environment@v6"
217220 with :
218- poetry-version : " 1.8.5 "
221+ poetry-version : " 2.1.3 "
219222 - name : " Constrain Nautobot version and regenerate lock file"
220223 env :
221224 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " true"
222- run : " poetry run invoke lock --constrain-nautobot-ver --constrain-python-ver"
225+ PY_CONSTRAINT : " ${{ matrix.python-version == '3.9' && '3.9.2' || matrix.python-version }}"
226+ run : " poetry run invoke lock --constrain-nautobot-ver --constrain-python-ver=${{ env.PY_CONSTRAINT }}"
223227 - name : " Set up Docker Buildx"
224228 id : " buildx"
225229 uses : " docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
@@ -270,7 +274,7 @@ jobs:
270274 if : >
271275 contains(fromJson('["develop","ltm-1.6"]'), github.base_ref) &&
272276 (github.head_ref != 'main') && (!startsWith(github.head_ref, 'release'))
273- runs-on : " ubuntu-22.04 "
277+ runs-on : " ubuntu-latest "
274278 steps :
275279 - name : " Check out repository code"
276280 uses : " actions/checkout@v4"
@@ -279,7 +283,7 @@ jobs:
279283 - name : " Setup environment"
280284 uses : " networktocode/gh-action-setup-poetry-environment@v6"
281285 with :
282- poetry-version : " 1.8.5 "
286+ poetry-version : " 2.1.3 "
283287 - name : " Check for changelog entry"
284288 run : |
285289 git fetch --no-tags origin +refs/heads/${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}
@@ -289,7 +293,7 @@ jobs:
289293 - " unittest"
290294 - " unittest_report"
291295 name : " Publish to GitHub"
292- runs-on : " ubuntu-22.04 "
296+ runs-on : " ubuntu-latest "
293297 if : " startsWith(github.ref, 'refs/tags/v')"
294298 env :
295299 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " True"
@@ -301,7 +305,7 @@ jobs:
301305 - name : " Setup environment"
302306 uses : " networktocode/gh-action-setup-poetry-environment@v6"
303307 with :
304- poetry-version : " 1.8.5 "
308+ poetry-version : " 2.1.3 "
305309 python-version : " 3.12"
306310 poetry-install-options : " --no-root"
307311 - name : " Set env"
@@ -321,7 +325,7 @@ jobs:
321325 - " unittest"
322326 - " unittest_report"
323327 name : " Push Package to PyPI"
324- runs-on : " ubuntu-22.04 "
328+ runs-on : " ubuntu-latest "
325329 if : " startsWith(github.ref, 'refs/tags/v')"
326330 env :
327331 INVOKE_NAUTOBOT_NETBOX_IMPORTER_LOCAL : " True"
@@ -331,7 +335,7 @@ jobs:
331335 - name : " Setup environment"
332336 uses : " networktocode/gh-action-setup-poetry-environment@v6"
333337 with :
334- poetry-version : " 1.8.5 "
338+ poetry-version : " 2.1.3 "
335339 python-version : " 3.12"
336340 poetry-install-options : " --no-root"
337341 - name : " Set env"
@@ -351,9 +355,9 @@ jobs:
351355 needs :
352356 - " publish_gh"
353357 - " publish_pypi"
354- runs-on : " ubuntu-22.04 "
358+ runs-on : " ubuntu-latest "
355359 env :
356- SLACK_WEBHOOK_URL : " ${{ secrets.SLACK_WEBHOOK_URL }}"
360+ SLACK_WEBHOOK_URL : " ${{ secrets.OSS_PYPI_SLACK_WEBHOOK_URL }}"
357361 SLACK_MESSAGE : >-
358362 *NOTIFICATION: NEW-RELEASE-PUBLISHED*\n
359363 Repository: <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}>\n
@@ -380,5 +384,5 @@ jobs:
380384 ]
381385 }
382386 env :
383- SLACK_WEBHOOK_URL : " ${{ secrets.SLACK_WEBHOOK_URL }}"
387+ SLACK_WEBHOOK_URL : " ${{ secrets.OSS_PYPI_SLACK_WEBHOOK_URL }}"
384388 SLACK_WEBHOOK_TYPE : " INCOMING_WEBHOOK"
0 commit comments