File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11name : Database
2+ # These workflows are intended to check that various actions related to the database
3+ # (such as building, exporting, and importing) work as expected.
24
35on :
46 pull_request :
@@ -78,15 +80,15 @@ jobs:
7880 - name : Run migrations
7981 run : uv run manage.py migrate --settings=config.local
8082 - name : Build database
81- run : uv run manage.py shell --settings=config.local -c "from data.v2.build import build_all; build_all()"
83+ run : uv run manage.py shell --settings=config.local -c "from data.v2.build import build_all; build_all(); exit() "
8284 - name : Dump DB
8385 run : pg_dump -h localhost -U pokeapi -Fc -N 'hdb_*' pokeapi > pokeapi.dump
8486 env :
8587 PGPASSWORD : pokeapi
8688 - name : Drop and recreate database
8789 run : |
88- psql -h localhost -U pokeapi -c "DROP DATABASE pokeapi;"
89- psql -h localhost -U pokeapi -c "CREATE DATABASE pokeapi;"
90+ psql -h localhost -U pokeapi -d postgres - c "DROP DATABASE pokeapi;"
91+ psql -h localhost -U pokeapi -d postgres - c "CREATE DATABASE pokeapi;"
9092 env :
9193 PGPASSWORD : pokeapi
9294 - name : Import database
Original file line number Diff line number Diff line change 11name : Container
2+ # These workflows are intended to check that the Docker and Kubernetes
3+ # configurations work as expected in a local development environment.
24
35on :
46 pull_request :
You can’t perform that action at this time.
0 commit comments