Skip to content

Commit 18a859a

Browse files
authored
Fix: [AEA-0000] - run regression test in parallel (#1092)
## Summary - Routine Change ### Details - use tag to run regression test in parallel
1 parent 6185fb6 commit 18a859a

File tree

2 files changed

+12
-237
lines changed

2 files changed

+12
-237
lines changed

.github/workflows/run_regression_tests.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,22 @@ jobs:
6969
GITHUB-TOKEN: ${{ steps.generate-token.outputs.token }}
7070
run: |
7171
if [[ "$TARGET_ENVIRONMENT" != "prod" && "$TARGET_ENVIRONMENT" != "ref" ]]; then
72+
# this should be the tag of the tests you want to run
73+
REGRESSION_TEST_REPO_TAG=v3.0.0
74+
75+
# this should be the tag of the regression test workflow you want to run
76+
# This will normally be the same as REGRESSION_TEST_REPO_TAG
77+
REGRESSION_TEST_WORKFLOW_TAG=v3.0.0
78+
79+
curl https://raw.githubusercontent.com/NHSDigital/electronic-prescription-service-api-regression-tests/refs/tags/${REGRESSION_TEST_WORKFLOW_TAG}/scripts/run_regression_tests.py -o run_regression_tests.py
7280
poetry install
7381
echo Running regression tests in the "$TARGET_ENVIRONMENT" environment
74-
poetry run python run_regression_tests.py \
82+
poetry run python -u run_regression_tests.py \
7583
--env="$TARGET_ENVIRONMENT" \
7684
--pr_label="$VERSION_NUMBER" \
7785
--token=${{ steps.generate-token.outputs.token }} \
7886
--is_called_from_github=true \
79-
--product=CPTS-UI
87+
--product=CPTS-UI \
88+
--regression_test_repo_tag "${REGRESSION_TEST_REPO_TAG}" \
89+
--regression_test_workflow_tag "${REGRESSION_TEST_WORKFLOW_TAG}"
8090
fi

scripts/run_regression_tests.py

Lines changed: 0 additions & 235 deletions
This file was deleted.

0 commit comments

Comments
 (0)