Skip to content

Commit 4b34292

Browse files
Merge pull request #88 from NHSDigital/APM-6136-dependabot-fixes
Apm-6136 update python dependencies
2 parents 862641c + cb0af58 commit 4b34292

File tree

15 files changed

+1220
-918
lines changed

15 files changed

+1220
-918
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
with:
1313
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function
1414

15-
- name: Install Python 3.8
15+
- name: Install Python 3.10
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.8
18+
python-version: "3.10"
1919

2020
- name: Update apt repositories
2121
run: sudo apt update

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ __pycache__/
1717
*.orig
1818
*.squashfs
1919
*.retry
20+
.envrc
2021

2122
# node
2223
node_modules/

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8.2
1+
3.10

azure/azure-build-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ extends:
2828
parameters:
2929
service_name: ${{ variables.service_name }}
3030
short_service_name: ${{ variables.short_service_name }}
31+
python_version: ${{ variables.python_version }}
3132
cache_steps:
3233
- task: s3-cache-action@1
3334
inputs:

azure/azure-pr-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ extends:
3333
service_name: ${{ variables.service_name }}
3434
service_base_path: ${{ variables.service_base_path }}
3535
short_service_name: ${{ variables.short_service_name }}
36+
python_version: ${{ variables.python_version }}
3637
apigee_deployments:
3738
- environment: internal-dev
3839
post_deploy:

azure/azure-release-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ extends:
3333
service_base_path: ${{ variables.service_base_path }}
3434
enable_monitoring: true
3535
enable_status_monitoring: true
36+
python_version: ${{ variables.python_version }}
3637
apigee_deployments:
3738
- environment: internal-dev
3839
post_deploy:

azure/project.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ variables:
22
service_name: sync-wrap
33
service_base_path: sync-wrap
44
short_service_name: sync-wrap
5+
python_version: 3.10

azure/templates/e2e.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ steps:
2121
- bash: |
2222
export RELEASE_RELEASEID=$(Build.BuildId)
2323
export SOURCE_COMMIT_ID=$(Build.SourceVersion)
24+
export PROXY_NAME="$(FULLY_QUALIFIED_SERVICE_NAME)"
25+
export APIGEE_ACCESS_TOKEN="$(secret.AccessToken)"
2426
export APIGEE_ENVIRONMENT="$(APIGEE_ENVIRONMENT)"
25-
export SERVICE_BASE_PATH="$(SERVICE_BASE_PATH)"
26-
export STATUS_ENDPOINT_API_KEY="$(status-endpoint-api-key)"
27+
export APIGEE_ORGANIZATION="nhsd-$(APIGEE_ORGANIZATION)"
2728
make -C e2e ${{ parameters.test_type }}
2829
2930
workingDirectory: $(SERVICE_DIR)

e2e/Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,24 @@ guard-%:
1717
exit 1; \
1818
fi
1919

20+
TEST_CMD := pytest \
21+
--color=yes \
22+
--api-name=sync-wrap \
23+
--proxy-name=$(PROXY_NAME) \
24+
25+
ifdef APIGEE_ORGANIZATION
26+
TEST_CMD += --apigee-organization=$(APIGEE_ORGANIZATION)
27+
endif
2028

2129
test:
22-
$(activate) pytest
30+
$(activate) $(TEST_CMD) -vs
2331

2432
e2e:
2533
rm -f ../reports/e2e.xml > /dev/null || true
26-
$(activate) coverage run --source ./ --module pytest -rxs -v --junit-xml=../reports/e2e.xml --ignore .venv || true
34+
$(activate) coverage run --source ./ --module $(TEST_CMD) -rxs -v --junit-xml=../reports/e2e.xml --ignore .venv || true
2735
@if [[ ! -f ../reports/e2e.xml ]]; then echo report not created; exit 1; fi
2836

2937
smoketest:
3038
rm -f ../reports/smoketest.xml > /dev/null || true
31-
$(activate) coverage run --source ./ --module pytest -m smoketest -rxs -v --junit-xml=../reports/smoketest.xml --ignore .venv || true
32-
@if [[ ! -f ../reports/smoketest.xml ]]; then echo report not created; exit 1; fi
39+
$(activate) coverage run --source ./ --module $(TEST_CMD) -m smoketest -rxs -v --junit-xml=../reports/smoketest.xml --ignore .venv || true
40+
@if [[ ! -f ../reports/smoketest.xml ]]; then echo report not created; exit 1; fi

e2e/conftest.py

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

0 commit comments

Comments
 (0)