run db migration in github ci
This commit is contained in:
parent
884407d6c8
commit
c748ab22e6
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -77,6 +77,10 @@ jobs:
|
||||||
poetry run black --check .
|
poetry run black --check .
|
||||||
poetry run flake8
|
poetry run flake8
|
||||||
|
|
||||||
|
- name: Run db migration
|
||||||
|
run: |
|
||||||
|
poetry run alembic upgrade head
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
poetry run pytest
|
poetry run pytest
|
||||||
|
|
|
@ -34,7 +34,7 @@ with engine.connect() as conn:
|
||||||
print(">>> pg_trgm can't be dropped, ignore")
|
print(">>> pg_trgm can't be dropped, ignore")
|
||||||
conn.execute("Rollback")
|
conn.execute("Rollback")
|
||||||
|
|
||||||
Base.metadata.create_all(engine)
|
# Base.metadata.create_all(engine)
|
||||||
|
|
||||||
add_sl_domains()
|
add_sl_domains()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue