Skip to content

Commit

Permalink
Run alembic upgrade head on test CI dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
steventux committed Jan 22, 2025
1 parent fb1131e commit 1db2da0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/stage-2-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
DATABASE_USER: postgres
DATABASE_PASSWORD: ""
DATABASE_SSLMODE: "disable"
ENV_FILE: ".env.test"

steps:
- name: "Create test db"
Expand All @@ -93,6 +94,10 @@ jobs:
pip install pipenv
pipenv install --dev --system
- name: "Set up test database"
run: |
alembic upgrade head
- name: "Run unit test suite"
run: |
./test-unit.sh
Expand Down Expand Up @@ -121,6 +126,7 @@ jobs:
DATABASE_USER: postgres
DATABASE_PASSWORD: ""
DATABASE_SSLMODE: "disable"
ENV_FILE: ".env.test"

steps:
- name: "Create test db"
Expand All @@ -135,6 +141,10 @@ jobs:
pip install pipenv
pipenv install --dev --system
- name: "Set up test database"
run: |
alembic upgrade head
- name: "Run integration test suite"
run: |
./test-integration.sh
Expand Down

0 comments on commit 1db2da0

Please sign in to comment.