From 611de04fd95ec5f436a25f58a0fd8bd77e75a187 Mon Sep 17 00:00:00 2001 From: Kieran Wardle <23309814+KieranWardle@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:10:44 +0000 Subject: [PATCH] Upgrade to python 3.11 (#19) * Upgrade to python 3.11 * Updated github action * pinned python-pipenv image to 3.11 --- .github/workflows/checks-and-tests.yml | 4 ++-- Dockerfile | 4 ++-- Pipfile | 2 +- Pipfile.lock | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/checks-and-tests.yml b/.github/workflows/checks-and-tests.yml index adb0b12..3157126 100644 --- a/.github/workflows/checks-and-tests.yml +++ b/.github/workflows/checks-and-tests.yml @@ -30,10 +30,10 @@ jobs: username: _json_key password: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }} - - name: Set up Python "3.10" + - name: Set up Python "3.11" uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - name: Install Dependencies run: | diff --git a/Dockerfile b/Dockerfile index fe228c9..9a102c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG python_pipenv_build_image=europe-west2-docker.pkg.dev/ons-ci-rm/docker/python-pipenv:3.10 +ARG python_pipenv_build_image=europe-west2-docker.pkg.dev/ons-ci-rm/docker/python-pipenv:3.11 FROM ${python_pipenv_build_image} as build ENV PIPENV_VENV_IN_PROJECT=1 @@ -8,7 +8,7 @@ COPY Pipfile* /app/ RUN /root/.local/bin/pipenv sync -FROM python:3.10.6-slim@sha256:ddfe4839f1516d0484944e07ea22200ede3d48828ecbf1f68eec1a9a06b79406 +FROM python:3.11.7-slim@sha256:89c610d12fe12b3e06f35d070f79e57cf14e2bd89c071435ee3678419b691603 RUN groupadd -g 984 respondenthome && useradd -r -u 984 -g respondenthome respondenthome diff --git a/Pipfile b/Pipfile index fb0b3ff..0f8c7ec 100644 --- a/Pipfile +++ b/Pipfile @@ -18,4 +18,4 @@ pytest = "*" pytest-cov = "*" [requires] -python_version = "3.10" +python_version = "3.11" diff --git a/Pipfile.lock b/Pipfile.lock index 2b4bd20..b2594a8 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,11 +1,11 @@ { "_meta": { "hash": { - "sha256": "03037f5fc147d02aeb05fc4377e62f27f6918d756a5ecdad8450cf2f68b6bfa8" + "sha256": "642227656852521d180f96358ee02a3bd91f77a60287dcc41f5061bbd78d3b79" }, "pipfile-spec": 6, "requires": { - "python_version": "3.10" + "python_version": "3.11" }, "sources": [ {