Skip to content

Commit

Permalink
Run database migrations against example data in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Jan 22, 2024
1 parent af229a0 commit db96001
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ jobs:
shell: bash -l {0}
run: source continuous_integration/scripts/start_postgres.sh


- name: Ensure example data is migrated to current catalog database schema.
# The example data is expected to be kept up to date to the latest Tiled
# release, but this CI run may include some unreleased schema changes,
# so we run a migration here.
shell: bash -l {0}
run: |
set -vxeuo pipefail
tiled catalog upgrade-database sqlite+aiosqlite:///tiled_test_db_sqlite.db
tiled catalog upgrade-database postgresql+asyncpg://postgres:secret@localhost:5432
- name: Test with pytest
shell: bash -l {0}
run: |
Expand Down

0 comments on commit db96001

Please sign in to comment.