8484 contents : write
8585 environment : ${{ needs.metadata.outputs.environment }}
8686 steps :
87+ - name : " Setup Terraform"
88+ uses : hashicorp/setup-terraform@v3
89+ with :
90+ terraform_version : ${{ needs.metadata.outputs.terraform_version }}
91+
92+ - name : " Install Poetry"
93+ run : |
94+ curl -sSL https://install.python-poetry.org | python3 -
95+ echo "$HOME/.local/bin" >> $GITHUB_PATH
96+
97+ - name : " Set up Python"
98+ uses : actions/setup-python@v5
99+ with :
100+ python-version : " 3.13"
101+ cache : ' poetry'
102+
103+ - name : " Install dependencies"
104+ run : poetry install
105+
87106 - name : " Checkout repository at ref"
88107 uses : actions/checkout@v5
89108 with :
@@ -153,6 +172,13 @@ jobs:
153172 echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=api-layer tf-command=apply"
154173 make terraform env=$ENVIRONMENT stack=api-layer tf-command=apply workspace=$WORKSPACE
155174
175+ - name : " Validate Feature Toggles"
176+ env :
177+ ENV : ${{ needs.metadata.outputs.environment }}
178+ run : |
179+ pip install boto3
180+ python scripts/feature_toggle/validate_toggles.py
181+
156182 - name : " Tag and Release"
157183 if : ${{ needs.metadata.outputs.environment == 'preprod' || needs.metadata.outputs.environment == 'prod' }}
158184 env :
@@ -162,3 +188,14 @@ jobs:
162188 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
163189 GITHUB_REPOSITORY : ${{ github.repository }}
164190 run : poetry run python scripts/workflow/tag_and_release.py
191+
192+
193+ regression-tests :
194+ name : " Regression Tests"
195+ if : ${{ needs.metadata.outputs.environment == 'preprod' }}
196+ needs : deploy
197+ uses : ./.github/workflows/regression-tests.yml
198+ with :
199+ ENVIRONMENT : " preprod"
200+ VERSION_NUMBER : " main"
201+ secrets : inherit
0 commit comments