From c748ab22e6a42d44a3e03d02e49313f84cf7329e Mon Sep 17 00:00:00 2001 From: Son Date: Sun, 1 May 2022 17:06:10 +0200 Subject: [PATCH] run db migration in github ci --- .github/workflows/main.yml | 4 ++++ tests/conftest.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54186f8a..4471dad8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/tests/conftest.py b/tests/conftest.py index 3a0d4abe..1647c8e5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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()