@ -29,4 +29,17 @@ jobs:
environment:
POSTGRES_USER: myUsr
POSTGRES_DB: psdb
POSTGRES_PASSWORD: somePwd
steps:
- checkout
- restore_cache:
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }}
- run:
name: Waiting for postgresql
command : dockerize -wait tcp://localhost:5432 -timeout 1m
name: Launching tests
command: |
. venv/bin/activate
flask db upgrade
flask test