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()