Skip to content

Commit

Permalink
Loose python version and update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
antibagr committed Nov 16, 2023
1 parent 83117c7 commit 97c2942
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions deploy/web/Dockerfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion deploy/web/Dockerfile.win
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit 97c2942

Please sign in to comment.