diff --git a/Makefile b/Makefile index c5ea612..5f50ca7 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ run: ## Run the container deploy: build login push ## Build the Docker image and push it to the Docker Hub migrate: ## Run database migrations for the app - alembic upgrade head + tox -e migrate frontend: ## Compile the frontend assets npm run build diff --git a/tox.ini b/tox.ini index 87ec329..9a8c388 100644 --- a/tox.ini +++ b/tox.ini @@ -31,7 +31,6 @@ passenv = S3_LAMBDA_ARN S3_LAMBDA_HOOK_SECRET commands = - alembic upgrade head py.test \ --cov {[tox]package} \ --cov-report term-missing \ @@ -44,3 +43,9 @@ commands = pylama \ {toxinidir}/{[tox]package} \ {posargs} + +[testenv:migrate] +deps = + -r{toxinidir}/requirements.txt +commands = + alembic {posargs:upgrade head}