From 84dfff41df6446e7e18ccc4b0d36769d8365ba07 Mon Sep 17 00:00:00 2001 From: Mathieu Velten Date: Wed, 15 May 2024 11:56:32 +0200 Subject: [PATCH] Update docker build and workflows to Python 3.11 --- .github/workflows/changelog_check.yml | 2 +- .github/workflows/pipeline.yml | 6 +++--- docker/Dockerfile | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/changelog_check.yml b/.github/workflows/changelog_check.yml index a8d592b1..a18212c9 100644 --- a/.github/workflows/changelog_check.yml +++ b/.github/workflows/changelog_check.yml @@ -12,6 +12,6 @@ jobs: ref: ${{github.event.pull_request.head.sha}} - uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - run: python -m pip install towncrier - run: "scripts-dev/check_newsfragment.sh ${{ github.event.number }}" diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 78fd285e..8dc05fd9 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - run: python -m pip install tox - run: tox -e check_codestyle @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - run: python -m pip install tox - run: tox -e check_types @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - run: python -m pip install -e . - run: python -m twisted.trial tests diff --git a/docker/Dockerfile b/docker/Dockerfile index 0b37cc3f..38b5f578 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,7 +9,7 @@ ### ### Stage 0: builder ### -FROM python:3.10-slim as builder +FROM python:3.11-slim as builder # Install git; Sygnal uses it to obtain the package version from the state of the # git repository. @@ -25,7 +25,7 @@ RUN pip install --prefix="/install" --no-warn-script-location /sygnal ### Stage 1: runtime ### -FROM python:3.10-slim +FROM python:3.11-slim COPY --from=builder /install /usr/local EXPOSE 5000/tcp