Skip to content

Commit 2697e09

Browse files
Merge branch 'main' into feature/SR-ELI-784-Calculator-Integration
2 parents cf99f37 + c5312b4 commit 2697e09

3 files changed

Lines changed: 27 additions & 415 deletions

File tree

.github/workflows/regression-tests.yml

Lines changed: 11 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,56 +9,17 @@ on:
99
VERSION_NUMBER:
1010
required: true
1111
type: string
12-
secrets: { }
1312

1413
jobs:
1514
regression-tests:
16-
runs-on: ubuntu-22.04
17-
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v6
20-
with:
21-
fetch-depth: 0
22-
23-
- name: Cache asdf
24-
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
25-
with:
26-
path: |
27-
~/.asdf
28-
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
29-
restore-keys: |
30-
${{ runner.os }}-asdf-
31-
32-
- name: Install asdf tools
33-
uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47
34-
with:
35-
asdf_branch: v0.15.0
36-
env:
37-
PYTHON_CONFIGURE_OPTS: --enable-shared
38-
39-
- name: Derive Python version from .tool-versions
40-
run: |
41-
PYTHON_VERSION=$(grep "^python" .tool-versions | sed 's/python //g')
42-
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
43-
44-
- name: setup python venv
45-
uses: actions/checkout@v6
46-
- uses: actions/setup-python@v6
47-
with:
48-
python-version: '${{ env.PYTHON_VERSION }}'
49-
cache: 'poetry' # caching poetry dependencies
50-
- run: poetry install
51-
52-
- name: Run Regression Testing
53-
working-directory: scripts
54-
if: ${{ (inputs.ENVIRONMENT != 'prod') && (inputs.ENVIRONMENT != 'ref') }}
55-
env:
56-
TARGET_ENVIRONMENT: ${{ inputs.ENVIRONMENT }}
57-
VERSION_NUMBER: ${{ inputs.VERSION_NUMBER }}
58-
TESTS_TOKEN: ${{ secrets.REGRESSION_TESTS_PAT }}
59-
run: |
60-
echo Running regression tests in the "$TARGET_ENVIRONMENT" environment.
61-
poetry run python run_regression_tests.py \
62-
--env="$TARGET_ENVIRONMENT" \
63-
--token="$TESTS_TOKEN" \
64-
--regression_test_repo_tag "$VERSION_NUMBER"
15+
if: ${{ inputs.ENVIRONMENT != 'prod' }}
16+
permissions:
17+
id-token: write
18+
contents: read
19+
issues: write
20+
pull-requests: write
21+
uses: NHSDigital/eligibility-signposting-api-regression-tests/.github/workflows/regression_tests.yml@main
22+
with:
23+
environment: ${{ inputs.ENVIRONMENT }}
24+
tags: "@regression"
25+
github_tag: ${{ inputs.VERSION_NUMBER }}

0 commit comments

Comments
 (0)