mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
parent
09b3ba6715
commit
d259d97ba9
2 changed files with 2 additions and 7 deletions
5
.github/workflows/data-checks.yml
vendored
5
.github/workflows/data-checks.yml
vendored
|
@ -1,12 +1,8 @@
|
||||||
# This runs tox in the two directories under data
|
# This runs tox in the two directories under data
|
||||||
name: Data Checks
|
name: Data Checks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ] # runs on any PR against main
|
branches: [ main ] # runs on any PR against main
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
data-pipeline:
|
data-pipeline:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -14,7 +10,6 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
# checks all of the versions allowed in pyproject.toml
|
# checks all of the versions allowed in pyproject.toml
|
||||||
python-version: [3.7, 3.8, 3.9]
|
python-version: [3.7, 3.8, 3.9]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# installs python
|
# installs python
|
||||||
# one execution of the tests per version listed above
|
# one execution of the tests per version listed above
|
||||||
|
|
|
@ -38,7 +38,7 @@ def generate_tiles(data_path: Path) -> None:
|
||||||
logger.info("Generating USA High mvt folders and files")
|
logger.info("Generating USA High mvt folders and files")
|
||||||
cmd = "tippecanoe "
|
cmd = "tippecanoe "
|
||||||
cmd += f"--minimum-zoom={USA_HIGH_MIN_ZOOM} --maximum-zoom={USA_HIGH_MAX_ZOOM} --no-tile-compression "
|
cmd += f"--minimum-zoom={USA_HIGH_MIN_ZOOM} --maximum-zoom={USA_HIGH_MAX_ZOOM} --no-tile-compression "
|
||||||
cmd += f"--output-to-directory={high_tile_path} "
|
cmd += f"--output-to-directory={high_tile_path} --layer=blocks "
|
||||||
cmd += str(score_geojson_dir / "usa-high.json")
|
cmd += str(score_geojson_dir / "usa-high.json")
|
||||||
call(cmd, shell=True)
|
call(cmd, shell=True)
|
||||||
|
|
||||||
|
@ -54,6 +54,6 @@ def generate_tiles(data_path: Path) -> None:
|
||||||
logger.info("Generating USA Low mvt folders and files")
|
logger.info("Generating USA Low mvt folders and files")
|
||||||
cmd = "tippecanoe "
|
cmd = "tippecanoe "
|
||||||
cmd += f"--minimum-zoom={USA_LOW_MIN_ZOOM} --maximum-zoom={USA_LOW_MAX_ZOOM} --no-tile-compression "
|
cmd += f"--minimum-zoom={USA_LOW_MIN_ZOOM} --maximum-zoom={USA_LOW_MAX_ZOOM} --no-tile-compression "
|
||||||
cmd += f"--output-to-directory={low_tile_path} "
|
cmd += f"--output-to-directory={low_tile_path} --layer=blocks "
|
||||||
cmd += str(score_geojson_dir / "usa-low.json")
|
cmd += str(score_geojson_dir / "usa-low.json")
|
||||||
call(cmd, shell=True)
|
call(cmd, shell=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue