From d234ab12d8f16d06e0d3876fc06313ebc636ce81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Wed, 18 Dec 2024 09:37:29 +0100 Subject: [PATCH] ci: docker image and test with python3.12 (#2842) --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/lint.yml | 8 ++++---- Dockerfile | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d37f61882..8de1c15fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: needs: [ lint ] strategy: matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] db-url: ["", "postgres://lnbits:lnbits@0.0.0.0:5432/lnbits"] uses: ./.github/workflows/tests.yml with: @@ -30,7 +30,7 @@ jobs: needs: [ lint ] strategy: matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] db-url: ["", "postgres://lnbits:lnbits@0.0.0.0:5432/lnbits"] uses: ./.github/workflows/tests.yml with: @@ -44,7 +44,7 @@ jobs: needs: [ lint ] strategy: matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] db-url: ["", "postgres://lnbits:lnbits@0.0.0.0:5432/lnbits"] uses: ./.github/workflows/tests.yml with: @@ -58,7 +58,7 @@ jobs: needs: [ lint ] strategy: matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] uses: ./.github/workflows/migration.yml with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3ab0ed748..282af62a0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ jobs: uses: ./.github/workflows/make.yml strategy: matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] with: make: checkblack python-version: ${{ matrix.python-version }} @@ -17,7 +17,7 @@ jobs: uses: ./.github/workflows/make.yml strategy: matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] with: make: checkruff python-version: ${{ matrix.python-version }} @@ -26,7 +26,7 @@ jobs: uses: ./.github/workflows/make.yml strategy: matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] with: make: mypy python-version: ${{ matrix.python-version }} @@ -35,7 +35,7 @@ jobs: uses: ./.github/workflows/make.yml strategy: matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] with: make: pyright python-version: ${{ matrix.python-version }} diff --git a/Dockerfile b/Dockerfile index d223e8f1c..df892ed13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-slim-bookworm AS builder +FROM python:3.12-slim-bookworm AS builder RUN apt-get clean RUN apt-get update @@ -21,7 +21,7 @@ ENV POETRY_NO_INTERACTION=1 \ RUN poetry install --only main -FROM python:3.10-slim-bookworm +FROM python:3.12-slim-bookworm # needed for backups postgresql-client version 14 (pg_dump) RUN apt-get update && apt-get -y upgrade && \