Skip to content

Commit 2f88018

Browse files
committed
Merge branch 'master' into VED-687-Search-API-no-return-for-RSV
# Conflicts: # .github/workflows/sonarcloud.yml
2 parents 7b87caa + e7c98f5 commit 2f88018

File tree

11 files changed

+22
-18
lines changed

11 files changed

+22
-18
lines changed

.github/workflows/pr-lint.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
name: PR Quality Check
2-
on: pull_request
2+
on:
3+
pull_request:
4+
types: [opened]
5+
36
jobs:
47
link-ticket:
58
runs-on: ubuntu-latest
69
steps:
710
- name: Check ticket name conforms to requirements
8-
run: echo ${{ github.event.pull_request.head.ref }} | grep -i -E -q "(amb-[0-9]+)|(ambspii-[0-9]+)|(adz-[0-9]+)|(amb-[0-9]+)|(dependabot\/)"
11+
run: echo ${{ github.event.pull_request.head.ref }} | grep -i -E -q "(amb-[0-9]+)|(ambspii-[0-9]+)|(adz-[0-9]+)|(ved-[0-9]+)|(dependabot\/)"
912
continue-on-error: true
1013

1114
- name: Grab ticket name
12-
if: contains(github.event.pull_request.head.ref, 'amb-') || contains(github.event.pull_request.head.ref, 'AMB-') || contains(github.event.pull_request.head.ref, 'ambspii-') || contains(github.event.pull_request.head.ref, 'AMBSPII-') || contains(github.event.pull_request.head.ref, 'adz-') || contains(github.event.pull_request.head.ref, 'ADZ-') || contains(github.event.pull_request.head.ref, 'amb-') || contains(github.event.pull_request.head.ref, 'AMB-')
13-
run: echo ::set-env name=TICKET_NAME::$(echo ${{ github.event.pull_request.head.ref }} | grep -i -o '\(amb-[0-9]\+\)\|\(ambspii-[0-9]\+\)\|\(adz-[0-9]\+\)|\(amb-[0-9]\+\)' | tr '[:lower:]' '[:upper:]')
15+
if: contains(github.event.pull_request.head.ref, 'amb-') || contains(github.event.pull_request.head.ref, 'AMB-') || contains(github.event.pull_request.head.ref, 'ambspii-') || contains(github.event.pull_request.head.ref, 'AMBSPII-') || contains(github.event.pull_request.head.ref, 'adz-') || contains(github.event.pull_request.head.ref, 'ADZ-') || contains(github.event.pull_request.head.ref, 'ved-') || contains(github.event.pull_request.head.ref, 'VED-')
16+
run: echo "TICKET_NAME=$(echo ${{ github.event.pull_request.head.ref }} | grep -i -o '\(amb-[0-9]\+\)\|\(ambspii-[0-9]\+\)\|\(adz-[0-9]\+\)\|\(ved-[0-9]\+\)' | tr '[:lower:]' '[:upper:]')" >> $GITHUB_ENV
1417
continue-on-error: true
1518
env:
1619
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
1720

1821
- name: Comment on PR with link to JIRA ticket
19-
if: contains(github.event.pull_request.head.ref, 'amb-') || contains(github.event.pull_request.head.ref, 'AMB-') || contains(github.event.pull_request.head.ref, 'ambspii-') || contains(github.event.pull_request.head.ref, 'AMBSPII-') || contains(github.event.pull_request.head.ref, 'adz-') || contains(github.event.pull_request.head.ref, 'ADZ-') || contains(github.event.pull_request.head.ref, 'amb-') || contains(github.event.pull_request.head.ref, 'AMB-')
22+
if: contains(github.event.pull_request.head.ref, 'amb-') || contains(github.event.pull_request.head.ref, 'AMB-') || contains(github.event.pull_request.head.ref, 'ambspii-') || contains(github.event.pull_request.head.ref, 'AMBSPII-') || contains(github.event.pull_request.head.ref, 'adz-') || contains(github.event.pull_request.head.ref, 'ADZ-') || contains(github.event.pull_request.head.ref, 'ved-') || contains(github.event.pull_request.head.ref, 'VED-')
2023
continue-on-error: true
2124
uses: unsplash/comment-on-pr@master
2225
env:
2326
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2427
with:
2528
msg: |
26-
This branch is work on a ticket in the NHS Digital AMB JIRA Project. Here's a handy link to the ticket:
29+
This branch is working on a ticket in the NHS England VED JIRA Project. Here's a handy link to the ticket:
2730
# [${{ env.TICKET_NAME }}](https://nhsd-jira.digital.nhs.uk/browse/${{ env.TICKET_NAME}})

.github/workflows/sonarcloud.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323

24+
- name: Install poetry
25+
run: pip install poetry==2.1.4
26+
2427
- name: Debug PR Info
2528
if: github.event_name == 'pull_request'
2629
run: |
@@ -63,6 +66,7 @@ jobs:
6366
- uses: actions/setup-python@v5
6467
with:
6568
python-version: 3.11
69+
cache: 'poetry'
6670

6771
- name: Set up AWS credentials
6872
env:
@@ -72,9 +76,6 @@ jobs:
7276
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
7377
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
7478
75-
- name: Install poetry
76-
run: pip install poetry==2.1.2
77-
7879
- name: Run unittest with filenameprocessor-coverage
7980
working-directory: filenameprocessor
8081
id: filenameprocessor

ack_backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM public.ecr.aws/lambda/python:3.11 AS base
33
RUN mkdir -p /home/appuser && \
44
echo 'appuser:x:1001:1001::/home/appuser:/sbin/nologin' >> /etc/passwd && \
55
echo 'appuser:x:1001:' >> /etc/group && \
6-
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.2"
6+
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.4"
77

88
COPY poetry.lock pyproject.toml README.md ./
99
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-root --only main

backend/batch.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM public.ecr.aws/lambda/python:3.11 AS base
33
RUN mkdir -p /home/appuser && \
44
echo 'appuser:x:1001:1001::/home/appuser:/sbin/nologin' >> /etc/passwd && \
55
echo 'appuser:x:1001:' >> /etc/group && \
6-
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.2"
6+
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.4"
77

88
# -----------------------------
99
COPY poetry.lock pyproject.toml README.md ./

backend/lambda.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM public.ecr.aws/lambda/python:3.11 as base
44
RUN mkdir -p /home/appuser && \
55
echo 'appuser:x:1001:1001::/home/appuser:/sbin/nologin' >> /etc/passwd && \
66
echo 'appuser:x:1001:' >> /etc/group && \
7-
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.2"
7+
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.4"
88

99
# -----------------------------
1010
COPY poetry.lock pyproject.toml README.md ./

delta_backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM public.ecr.aws/lambda/python:3.11 AS base
44
RUN mkdir -p /home/appuser && \
55
echo 'appuser:x:1001:1001::/home/appuser:/sbin/nologin' >> /etc/passwd && \
66
echo 'appuser:x:1001:' >> /etc/group && \
7-
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.2"
7+
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.4"
88

99

1010

filenameprocessor/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM public.ecr.aws/lambda/python:3.11 AS base
44
RUN mkdir -p /home/appuser && \
55
echo 'appuser:x:1001:1001::/home/appuser:/sbin/nologin' >> /etc/passwd && \
66
echo 'appuser:x:1001:' >> /etc/group && \
7-
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.2"
7+
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.4"
88

99
# Install Poetry as root
1010
COPY poetry.lock pyproject.toml README.md ./

filenameprocessor/batch.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM public.ecr.aws/lambda/python:3.11 as base
22

3-
RUN pip install "poetry~=2.1.2"
3+
RUN pip install "poetry~=2.1.4"
44

55
COPY poetry.lock pyproject.toml README.md ./
66
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-root --only main

lambdas/id_sync/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM public.ecr.aws/lambda/python:3.11 AS base
44
RUN mkdir -p /home/appuser && \
55
echo 'appuser:x:1001:1001::/home/appuser:/sbin/nologin' >> /etc/passwd && \
66
echo 'appuser:x:1001:' >> /etc/group && \
7-
chown -R 1001:1001 /home/appuser && pip install "poetry~=1.5.0"
7+
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.4"
88

99
# Install Poetry dependencies
1010
# Copy id_sync Poetry files

recordprocessor/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM public.ecr.aws/lambda/python:3.11 AS base
44
RUN mkdir -p /home/appuser && \
55
echo 'appuser:x:1001:1001::/home/appuser:/sbin/nologin' >> /etc/passwd && \
66
echo 'appuser:x:1001:' >> /etc/group && \
7-
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.2"
7+
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.4"
88

99
# Install Poetry as root
1010
COPY poetry.lock pyproject.toml README.md ./

0 commit comments

Comments
 (0)