add alembic check

This commit is contained in:
Mark
2025-04-09 08:08:14 +02:00
parent 1becd8e7e5
commit 16fa1c858b
5 changed files with 21 additions and 8 deletions

View File

@@ -31,6 +31,11 @@ jobs:
with:
version: "0.6.9"
- name: Install sqlite3
run: |
sudo apt-get update
sudo apt-get install -y sqlite3
- run: uv sync --all-extras --dev
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
@@ -39,6 +44,11 @@ jobs:
with:
extra-args: app # only check apps dir
- name: Check Alembic Migrations
run: |
uv run alembic upgrade heads
uv run alembic check
build:
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'release'