simple-login/app/scripts/run-test.sh
MrMeeb dd6005ffdf
Some checks failed
Build-Release-Image / Build-Image (linux/amd64) (push) Successful in 3m25s
Build-Release-Image / Build-Image (linux/arm64) (push) Failing after 14m51s
Build-Release-Image / Merge-Images (push) Has been skipped
Build-Release-Image / Create-Release (push) Has been skipped
Build-Release-Image / Notify (push) Has been skipped
4.64.0
2025-01-21 12:00:08 +00:00

20 lines
467 B
Bash
Executable File

# Run tests
# Delete the test DB if it isn't properly removed
docker rm -f sl-test-db
# Create a test DB
docker run -d --name sl-test-db -e POSTGRES_PASSWORD=test -e POSTGRES_USER=test -e POSTGRES_DB=test -p 15432:5432 postgres:13
# the time for the test DB container to start
sleep 3
# migrate the DB to the latest version
CONFIG=tests/test.env uv run alembic upgrade head
# run test
uv run pytest -c pytest.ci.ini
# Delete the test DB
docker rm -f sl-test-db