run db migration in github ci

This commit is contained in:
Son 2022-05-01 17:06:10 +02:00
parent 884407d6c8
commit c748ab22e6
2 changed files with 5 additions and 1 deletions

View File

@ -77,6 +77,10 @@ jobs:
poetry run black --check .
poetry run flake8
- name: Run db migration
run: |
poetry run alembic upgrade head
- name: Test with pytest
run: |
poetry run pytest

View File

@ -34,7 +34,7 @@ with engine.connect() as conn:
print(">>> pg_trgm can't be dropped, ignore")
conn.execute("Rollback")
Base.metadata.create_all(engine)
# Base.metadata.create_all(engine)
add_sl_domains()