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 fb8bbac
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 @@ -14,7 +14,7 @@ jobs:
run: |
python -m pip install pyyaml colormath
- name: Set up xmllint
run: sudo apt-get install -qq --no-install-recommends libxml2-utils
run: sudo apt-get install -qq --no-install-recommends libxml2-utils gdal-bin
- name: Set up shell
run: set -o pipefail
- name: Validate YAML files
Expand Down Expand Up @@ -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 fb8bbac

Please sign in to comment.