From 97c2942f1df5df773db283eef981a411749d7488 Mon Sep 17 00:00:00 2001 From: Anton Bagrianov Date: Thu, 16 Nov 2023 20:03:29 +0400 Subject: [PATCH] Loose python version and update github workflows --- .github/workflows/makefile.yml | 8 ++++---- deploy/web/Dockerfile.linux | 4 ++-- deploy/web/Dockerfile.win | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index dd56b30..40eabff 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -6,12 +6,12 @@ jobs: ci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 - name: Install poetry run: pipx install poetry # Reference: https://github.com/actions/setup-python/tree/main - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v4.7.1 with: python-version-file: 'pyproject.toml' cache: 'poetry' @@ -23,10 +23,10 @@ jobs: make tests-units - name: Coverage Badge - uses: tj-actions/coverage-badge-py@v2 + uses: tj-actions/coverage-badge-py@v2.0.3 - name: Verify Changed files - uses: tj-actions/verify-changed-files@v16 + uses: tj-actions/verify-changed-files@v16.1.1 id: verify-changed-files with: files: coverage.svg diff --git a/deploy/web/Dockerfile.linux b/deploy/web/Dockerfile.linux index 4fce221..b013a76 100644 --- a/deploy/web/Dockerfile.linux +++ b/deploy/web/Dockerfile.linux @@ -2,7 +2,7 @@ # Source: https://medium.com/@albertazzir/blazing-fast-python-docker-builds-with-poetry-a78a66f5aed0 # The builder image, used to build the virtual environment -FROM python:3.12.0-slim as builder +FROM python:3.11.0-slim as builder RUN pip install poetry @@ -20,7 +20,7 @@ COPY pyproject.toml poetry.lock ./ RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install --no-interaction --no-ansi --no-root --only main # The runtime image, used to just run the code provided its virtual environment -FROM python:3.12.0-slim as runtime +FROM python:3.11.0-slim as runtime ENV VIRTUAL_ENV=/app/.venv \ PATH="/app/.venv/bin:$PATH" diff --git a/deploy/web/Dockerfile.win b/deploy/web/Dockerfile.win index 13a1963..3fb3f6e 100644 --- a/deploy/web/Dockerfile.win +++ b/deploy/web/Dockerfile.win @@ -1,6 +1,6 @@ # Windows does not support BuildKit yet, so we need to use the old syntax # Reference: https://github.com/moby/buildkit/issues/616 -FROM python:3.12.0-slim +FROM python:3.11.0-slim ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \ PYTHONDONTWRITEBYTECODE=1 \