@@ -30,10 +30,10 @@ jobs:
3030 with :
3131 ref : ${{ inputs.branch_name }}
3232
33- - name : Setup Python environment
33+ - name : Setup environment
3434 run : |
35+ echo "${HOME}/.asdf/bin" >> $GITHUB_PATH
3536 poetry install --no-root
36- source $(poetry env info --path)/bin/activate
3737
3838 - name : Run Linting
3939 run : make lint
8383 with :
8484 ref : ${{ inputs.branch_name }}
8585
86+ - name : Setup environment
87+ run : |
88+ echo "${HOME}/.asdf/bin" >> $GITHUB_PATH
89+ poetry install --no-root
90+
8691 - name : Configure Management Credentials
8792 uses : aws-actions/configure-aws-credentials@v4
8893 with :
@@ -101,11 +106,6 @@ jobs:
101106 name : build-artifacts
102107 path : dist
103108
104- - name : Setup Python environment
105- run : |
106- poetry install --no-root
107- source $(poetry env info --path)/bin/activate
108-
109109 - name : Restore NRLF permissions cache
110110 uses : actions/cache/restore@v4
111111 with :
@@ -147,6 +147,11 @@ jobs:
147147 with :
148148 ref : ${{ inputs.branch_name }}
149149
150+ - name : Setup environment
151+ run : |
152+ echo "${HOME}/.asdf/bin" >> $GITHUB_PATH
153+ poetry install --no-root
154+
150155 - name : Download build artifacts
151156 uses : actions/download-artifact@v4
152157 with :
@@ -175,11 +180,6 @@ jobs:
175180 account=$(echo '${{ inputs.environment }}' | cut -d '-' -f1)
176181 make truststore-pull-server ENV=${account}
177182
178- - name : Setup Python environment
179- run : |
180- poetry install --no-root
181- source $(poetry env info --path)/bin/activate
182-
183183 - name : Terraform Init
184184 run : |
185185 inactive_stack=$(poetry run python ./scripts/get_env_config.py inactive-stack ${{ inputs.environment }})
@@ -213,18 +213,18 @@ jobs:
213213 with :
214214 ref : ${{ inputs.branch_name }}
215215
216+ - name : Setup environment
217+ run : |
218+ echo "${HOME}/.asdf/bin" >> $GITHUB_PATH
219+ poetry install --no-root
220+
216221 - name : Configure Management Credentials
217222 uses : aws-actions/configure-aws-credentials@v4
218223 with :
219224 aws-region : eu-west-2
220225 role-to-assume : ${{ secrets.MGMT_ROLE_ARN }}
221226 role-session-name : github-actions-ci-${{ inputs.environment }}-${{ github.run_id}}
222227
223- - name : Setup Python environment
224- run : |
225- poetry install --no-root
226- source $(poetry env info --path)/bin/activate
227-
228228 - name : Activate Stack
229229 run : |
230230 inactive_stack=$(poetry run python ./scripts/get_env_config.py inactive-stack ${{ inputs.environment }})
@@ -242,18 +242,18 @@ jobs:
242242 with :
243243 ref : ${{ inputs.branch_name }}
244244
245+ - name : Setup environment
246+ run : |
247+ echo "${HOME}/.asdf/bin" >> $GITHUB_PATH
248+ poetry install --no-root
249+
245250 - name : Configure Management Credentials
246251 uses : aws-actions/configure-aws-credentials@v4
247252 with :
248253 aws-region : eu-west-2
249254 role-to-assume : ${{ secrets.MGMT_ROLE_ARN }}
250255 role-session-name : github-actions-ci-${{ inputs.environment }}-${{ github.run_id}}
251256
252- - name : Setup Python environment
253- run : |
254- poetry install --no-root
255- source $(poetry env info --path)/bin/activate
256-
257257 - name : " Smoke Test"
258258 run : |
259259 make ENV=${{ inputs.environment }} test-smoke-public
@@ -271,6 +271,11 @@ jobs:
271271 with :
272272 ref : ${{ inputs.branch_name }}
273273
274+ - name : Setup environment
275+ run : |
276+ echo "${HOME}/.asdf/bin" >> $GITHUB_PATH
277+ poetry install --no-root
278+
274279 - name : Configure Management Credentials
275280 uses : aws-actions/configure-aws-credentials@v4
276281 with :
0 commit comments