Skip to content

Commit

Permalink
Test queries in CI
Browse files Browse the repository at this point in the history
This requires importing empty shapefiles with the same layout
as the ones downloaded.
  • Loading branch information
pnorman committed Jul 21, 2022
1 parent ec6508d commit dbc2fac
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install osm2pgsql and database
run: sudo apt-get install -qq --no-install-recommends osm2pgsql postgresql-14-postgis-3
run: sudo apt-get install -qq --no-install-recommends osm2pgsql postgresql-14-postgis-3 gdal-bin
- name: Wait for database
run : sudo pg_ctlcluster 14 main start; until pg_isready; do sleep 0.5; done
- name: Setup database
Expand All @@ -45,3 +45,7 @@ jobs:
osm2pgsql -G --hstore --style openstreetmap-carto.style --tag-transform-script openstreetmap-carto.lua -d gis -r xml <(echo '<osm version="0.6"/>')
- name: Create indexes
run: psql -1Xq -v ON_ERROR_STOP=1 -d gis -f indexes.sql
- name: Load empty shapefiles
run: scripts/get-external-data.py --no-update --cache -D scripts/empty_files
- name: Test queries are valid
run: scripts/test-queries.py project.mml
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Thu 01 Jan 1970 12:00:00 AM UTC
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Thu 01 Jan 1970 12:00:00 AM UTC
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Thu 01 Jan 1970 12:00:00 AM UTC
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Thu 01 Jan 1970 12:00:00 AM UTC
Binary file added scripts/empty_files/water-polygons-split-3857.zip
Binary file not shown.
1 change: 1 addition & 0 deletions scripts/empty_files/water-polygons-split-3857.zip.lastmod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Thu 01 Jan 1970 12:00:00 AM UTC

0 comments on commit dbc2fac

Please sign in to comment.