11---
22name : " 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
44 group : " ${{ github.workflow }}-${{ github.ref }}"
55 cancel-in-progress : true
66on : # yamllint disable-line rule:truthy rule:comments
2020 - name : " Check out repository code"
2121 uses : " actions/checkout@v4"
2222 - name : " Setup environment"
23- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
23+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
2424 with :
2525 poetry-version : " 2.1.3"
2626 poetry-install-options : " --only-root"
4444 with :
4545 name : " poetry-lock"
4646 - name : " Setup environment"
47- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
47+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
4848 with :
4949 poetry-version : " 2.1.3"
5050 - name : " Linting: ruff format"
6262 with :
6363 name : " poetry-lock"
6464 - name : " Setup environment"
65- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
65+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
6666 with :
6767 poetry-version : " 2.1.3"
6868 - name : " Linting: ruff"
8080 with :
8181 name : " poetry-lock"
8282 - name : " Setup environment"
83- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
83+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
8484 with :
8585 poetry-version : " 2.1.3"
8686 poetry-install-options : " --only dev,docs"
@@ -94,11 +94,29 @@ jobs:
9494 - name : " Check out repository code"
9595 uses : " actions/checkout@v4"
9696 - name : " Setup environment"
97- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
97+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
9898 with :
9999 poetry-version : " 2.1.3"
100100 - name : " Checking: poetry lock file"
101101 run : " poetry run invoke lock --check"
102+ djlint :
103+ needs : " generate-lockfile"
104+ runs-on : " ubuntu-latest"
105+ env :
106+ INVOKE_NAUTOBOT_SSOT_LOCAL : " True"
107+ steps :
108+ - name : " Check out repository code"
109+ uses : " actions/checkout@v4"
110+ - name : " Download poetry.lock artifact"
111+ uses : " actions/download-artifact@v4"
112+ with :
113+ name : " poetry-lock"
114+ - name : " Setup environment"
115+ uses : " networktocode/gh-action-setup-poetry-environment@v7"
116+ with :
117+ poetry-version : " 2.1.3"
118+ - name : " Linting: djlint"
119+ run : " poetry run invoke djlint"
102120 yamllint :
103121 needs : " generate-lockfile"
104122 runs-on : " ubuntu-latest"
@@ -112,7 +130,7 @@ jobs:
112130 with :
113131 name : " poetry-lock"
114132 - name : " Setup environment"
115- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
133+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
116134 with :
117135 poetry-version : " 2.1.3"
118136 - name : " Linting: yamllint"
@@ -130,7 +148,7 @@ jobs:
130148 with :
131149 name : " poetry-lock"
132150 - name : " Setup environment"
133- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
151+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
134152 with :
135153 poetry-version : " 2.1.3"
136154 - name : " Linting: markdownlint"
@@ -155,20 +173,18 @@ jobs:
155173 - name : " Check out repository code"
156174 uses : " actions/checkout@v4"
157175 - name : " Setup environment"
158- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
176+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
159177 with :
160178 poetry-version : " 2.1.3"
161- - name : " Pip install virtualenv to avoid issue with virtualenv --wheel"
162- run : " ~/.local/share/pypoetry/venv/bin/pip install virtualenv==20.30.0"
163179 - name : " Constrain Nautobot version and regenerate lock file"
164180 env :
165181 INVOKE_NAUTOBOT_SSOT_LOCAL : " true"
166182 run : " poetry run invoke lock --constrain-nautobot-ver --constrain-python-ver=${{ matrix.python-version }}"
167183 - name : " Set up Docker Buildx"
168184 id : " buildx"
169- uses : " docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
185+ uses : " docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
170186 - name : " Build"
171- uses : " docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25" # v5.4.0
187+ uses : " docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25" # v5.4.0
172188 with :
173189 builder : " ${{ steps.buildx.outputs.name }}"
174190 context : " ./"
@@ -194,7 +210,7 @@ jobs:
194210 strategy :
195211 fail-fast : true
196212 matrix :
197- python-version : ["3.10"] # 3.13 stable is tested in unittest_report stage.
213+ python-version : ["3.10"] # 3.13 stable is tested in unittest_report stage.
198214 db-backend : ["postgresql"]
199215 nautobot-version : ["stable"]
200216 include :
@@ -212,20 +228,18 @@ jobs:
212228 - name : " Check out repository code"
213229 uses : " actions/checkout@v4"
214230 - name : " Setup environment"
215- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
231+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
216232 with :
217233 poetry-version : " 2.1.3"
218- - name : " Pip install virtualenv to avoid issue with virtualenv --wheel"
219- run : " ~/.local/share/pypoetry/venv/bin/pip install virtualenv==20.30.0"
220234 - name : " Constrain Nautobot version and regenerate lock file"
221235 env :
222236 INVOKE_NAUTOBOT_SSOT_LOCAL : " true"
223237 run : " poetry run invoke lock --constrain-nautobot-ver --constrain-python-ver=${{ matrix.python-version }}"
224238 - name : " Set up Docker Buildx"
225239 id : " buildx"
226- uses : " docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
240+ uses : " docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
227241 - name : " Build"
228- uses : " docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25" # v5.4.0
242+ uses : " docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25" # v5.4.0
229243 with :
230244 builder : " ${{ steps.buildx.outputs.name }}"
231245 context : " ./"
@@ -264,7 +278,7 @@ jobs:
264278 - name : " Check out repository code"
265279 uses : " actions/checkout@v4"
266280 - name : " Setup environment"
267- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
281+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
268282 with :
269283 poetry-version : " 2.1.3"
270284 - name : " Constrain Nautobot version and regenerate lock file"
@@ -273,9 +287,9 @@ jobs:
273287 run : " poetry run invoke lock --constrain-nautobot-ver --constrain-python-ver=${{ matrix.python-version }}"
274288 - name : " Set up Docker Buildx"
275289 id : " buildx"
276- uses : " docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
290+ uses : " docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2" # v3.10.0
277291 - name : " Build"
278- uses : " docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25" # v5.4.0
292+ uses : " docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25" # v5.4.0
279293 with :
280294 builder : " ${{ steps.buildx.outputs.name }}"
281295 context : " ./"
@@ -301,7 +315,7 @@ jobs:
301315 contains(fromJson('["develop","ltm-1.6"]'), github.base_ref) &&
302316 (github.head_ref != 'main') && (!startsWith(github.head_ref, 'release'))
303317 id : " coverage_comment"
304- uses : " py-cov-action/python-coverage-comment-action@d1ff8fbb5ff80feedb3faa0f6d7b424f417ad0e1" # v3.30
318+ uses : " py-cov-action/python-coverage-comment-action@d1ff8fbb5ff80feedb3faa0f6d7b424f417ad0e1" # v3.30
305319 with :
306320 GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
307321 MINIMUM_GREEN : 90
@@ -332,7 +346,7 @@ jobs:
332346 with :
333347 name : " poetry-lock"
334348 - name : " Setup environment"
335- uses : " networktocode/gh-action-setup-poetry-environment@v6 "
349+ uses : " networktocode/gh-action-setup-poetry-environment@v7 "
336350 with :
337351 poetry-version : " 2.1.3"
338352 - name : " Check for changelog entry"
0 commit comments