From 09003cc8b3611ebc0f3e9d2a8df135187cce17ff Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sat, 17 Oct 2026 10:32:33 +0300 Subject: [PATCH] Set alembic path_separator and pin postgres 17 in CI and compose --- .github/workflows/main.yml | 2 +- alembic.ini | 1 + docker-compose.yml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1026403..7c760fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,7 +44,7 @@ jobs: run: uv run pytest tests/migrations --override-ini=addopts= services: postgres: - image: postgres:latest + image: postgres:17 env: POSTGRES_DB: postgres POSTGRES_PASSWORD: password diff --git a/alembic.ini b/alembic.ini index 455a1fa..733e402 100644 --- a/alembic.ini +++ b/alembic.ini @@ -10,6 +10,7 @@ file_template = %%(year)d-%%(month).2d-%%(day).2d_%%(slug)s # sys.path path, will be prepended to sys.path if present. # defaults to the current working directory. prepend_sys_path = . +path_separator = os # timezone to use when rendering the date # within the migration file as well as the filename. diff --git a/docker-compose.yml b/docker-compose.yml index e503758..51c53f8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: ["uv", "run", "python", "-m", "app"] db: - image: postgres:14 + image: postgres:17 restart: always environment: - POSTGRES_PASSWORD=password