- uses: actions/cache@v2
with:
path: |
- {{ github.workspace }}/data/country_osm_grid.sql.gz
- {{ github.workspace }}/monaco-latest.osm.pbf
+ data/country_osm_grid.sql.gz
+ monaco-latest.osm.pbf
key: nominatim-data-${{ steps.get-date.outputs.date }}
- uses: ./.github/actions/setup-postgresql
run: phpcs --report-width=120 .
- name: Python linting
- run: pylint nominatim
+ run: pylint --extension-pkg-whitelist=osmium nominatim
- name: PHP unit tests
run: phpunit ./
- uses: actions/cache@v2
with:
path: |
- {{ github.workspace }}/data/country_osm_grid.sql.gz
- {{ github.workspace }}/monaco-latest.osm.pbf
+ data/country_osm_grid.sql.gz
+ monaco-latest.osm.pbf
key: nominatim-data-${{ steps.get-date.outputs.date }}
- uses: ./.github/actions/setup-postgresql
postgis-version: 3
- uses: ./.github/actions/build-nominatim
- - name: Create configuration
- run: |
- echo "NOMINATIM_PYOSMIUM_BINARY=/usr/lib/python3-pyosmium/pyosmium-get-changes" >> .env
- working-directory: build
-
- name: Download import data
run: |
if [ ! -f monaco-latest.osm.pbf ]; then