1414 APP_NAME : " nautobot-device-onboarding"
1515
1616jobs :
17+ generate-lockfile :
18+ runs-on : " ubuntu-latest"
19+ steps :
20+ - name : " Check out repository code"
21+ uses : " actions/checkout@v4"
22+ - name : " Setup environment"
23+ uses : " networktocode/gh-action-setup-poetry-environment@v6"
24+ with :
25+ poetry-version : " 2.1.3"
26+ poetry-install-options : " --only-root"
27+ - name : " Regenerate poetry.lock"
28+ run : " poetry lock --regenerate"
29+ - name : " Upload poetry.lock"
30+ uses : " actions/upload-artifact@v4"
31+ with :
32+ name : " poetry-lock"
33+ path : " poetry.lock"
1734 ruff-format :
35+ needs : " generate-lockfile"
1836 runs-on : " ubuntu-latest"
1937 env :
2038 INVOKE_NAUTOBOT_DEVICE_ONBOARDING_LOCAL : " True"
2139 steps :
2240 - name : " Check out repository code"
2341 uses : " actions/checkout@v4"
42+ - name : " Download poetry.lock artifact"
43+ uses : " actions/download-artifact@v4"
44+ with :
45+ name : " poetry-lock"
2446 - name : " Setup environment"
2547 uses : " networktocode/gh-action-setup-poetry-environment@v6"
2648 with :
2749 poetry-version : " 2.1.3"
2850 - name : " Linting: ruff format"
2951 run : " poetry run invoke ruff --action format"
3052 ruff-lint :
53+ needs : " generate-lockfile"
3154 runs-on : " ubuntu-latest"
3255 env :
3356 INVOKE_NAUTOBOT_DEVICE_ONBOARDING_LOCAL : " True"
3457 steps :
3558 - name : " Check out repository code"
3659 uses : " actions/checkout@v4"
60+ - name : " Download poetry.lock artifact"
61+ uses : " actions/download-artifact@v4"
62+ with :
63+ name : " poetry-lock"
3764 - name : " Setup environment"
3865 uses : " networktocode/gh-action-setup-poetry-environment@v6"
3966 with :
4067 poetry-version : " 2.1.3"
4168 - name : " Linting: ruff"
4269 run : " poetry run invoke ruff --action lint"
4370 check-docs-build :
71+ needs : " generate-lockfile"
4472 runs-on : " ubuntu-latest"
4573 env :
4674 INVOKE_NAUTOBOT_DEVICE_ONBOARDING_LOCAL : " True"
4775 steps :
4876 - name : " Check out repository code"
4977 uses : " actions/checkout@v4"
78+ - name : " Download poetry.lock artifact"
79+ uses : " actions/download-artifact@v4"
80+ with :
81+ name : " poetry-lock"
5082 - name : " Setup environment"
5183 uses : " networktocode/gh-action-setup-poetry-environment@v6"
5284 with :
@@ -68,25 +100,35 @@ jobs:
68100 - name : " Checking: poetry lock file"
69101 run : " poetry run invoke lock --check"
70102 yamllint :
103+ needs : " generate-lockfile"
71104 runs-on : " ubuntu-latest"
72105 env :
73106 INVOKE_NAUTOBOT_DEVICE_ONBOARDING_LOCAL : " True"
74107 steps :
75108 - name : " Check out repository code"
76109 uses : " actions/checkout@v4"
110+ - name : " Download poetry.lock artifact"
111+ uses : " actions/download-artifact@v4"
112+ with :
113+ name : " poetry-lock"
77114 - name : " Setup environment"
78115 uses : " networktocode/gh-action-setup-poetry-environment@v6"
79116 with :
80117 poetry-version : " 2.1.3"
81118 - name : " Linting: yamllint"
82119 run : " poetry run invoke yamllint"
83120 markdownlint :
121+ needs : " generate-lockfile"
84122 runs-on : " ubuntu-latest"
85123 env :
86124 INVOKE_NAUTOBOT_DEVICE_ONBOARDING_LOCAL : " True"
87125 steps :
88126 - name : " Check out repository code"
89127 uses : " actions/checkout@v4"
128+ - name : " Download poetry.lock artifact"
129+ uses : " actions/download-artifact@v4"
130+ with :
131+ name : " poetry-lock"
90132 - name : " Setup environment"
91133 uses : " networktocode/gh-action-setup-poetry-environment@v6"
92134 with :
@@ -104,7 +146,11 @@ jobs:
104146 strategy :
105147 fail-fast : true
106148 matrix :
149+ <<<<<<< HEAD
107150 python-version : ["3.13"]
151+ =======
152+ python-version : ["3.10"]
153+ >>>>>>> e3b162a (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
108154 nautobot-version : ["3.0.0"]
109155 env :
110156 INVOKE_NAUTOBOT_DEVICE_ONBOARDING_PYTHON_VER : " ${{ matrix.python-version }}"
@@ -150,11 +196,15 @@ jobs:
150196 strategy :
151197 fail-fast : true
152198 matrix :
199+ <<<<<<< HEAD
153200 python-version : ["3.11"] # 3.13 stable is tested in unittest_report stage.
201+ =======
202+ python-version : ["3.10"] # 3.13 stable is tested in unittest_report stage.
203+ >>>>>>> e3b162a (Cookie updated targeting develop by NetworkToCode Cookie Drift Manager Tool)
154204 db-backend : ["postgresql"]
155205 nautobot-version : ["stable"]
156206 include :
157- - python-version : " 3.11 "
207+ - python-version : " 3.10 "
158208 db-backend : " postgresql"
159209 nautobot-version : " 3.0.0"
160210 - python-version : " 3.13"
@@ -198,7 +248,6 @@ jobs:
198248 if : " matrix.db-backend == 'mysql'"
199249 - name : " Run Tests"
200250 run : " poetry run invoke unittest"
201-
202251 unittest_report :
203252 needs :
204253 - " check-in-docker"
@@ -271,8 +320,8 @@ jobs:
271320 with :
272321 name : " python-coverage-comment-action"
273322 path : " python-coverage-comment-action.txt"
274-
275323 changelog :
324+ needs : " generate-lockfile"
276325 if : >
277326 contains(fromJson('["develop","ltm-1.6"]'), github.base_ref) &&
278327 (github.head_ref != 'main') && (!startsWith(github.head_ref, 'release'))
@@ -282,6 +331,10 @@ jobs:
282331 uses : " actions/checkout@v4"
283332 with :
284333 fetch-depth : " 0"
334+ - name : " Download poetry.lock artifact"
335+ uses : " actions/download-artifact@v4"
336+ with :
337+ name : " poetry-lock"
285338 - name : " Setup environment"
286339 uses : " networktocode/gh-action-setup-poetry-environment@v6"
287340 with :
0 commit comments