- - name: BDD tests
- run: |
- behave -DREMOVE_TEMPLATE=1 -DBUILDDIR=$GITHUB_WORKSPACE/build --format=progress3
- working-directory: Nominatim/test/bdd
- if: matrix.ubuntu == 18
+ - name: Install mypy and typechecking info
+ run: pip3 install -U mypy osmium uvicorn types-PyYAML types-jinja2 types-psycopg2 types-psutil types-requests types-ujson types-Pygments typing-extensions
+ if: matrix.flavour != 'oldstuff'
+
+ - name: Python static typechecking
+ run: python3 -m mypy --strict nominatim
+ working-directory: Nominatim
+ if: matrix.flavour != 'oldstuff'
+
+ legacy-test:
+ needs: create-archive
+ runs-on: ubuntu-20.04
+
+ steps:
+ - uses: actions/download-artifact@v3
+ with:
+ name: full-source
+
+ - name: Unpack Nominatim
+ run: tar xf nominatim-src.tar.bz2
+
+ - name: Setup PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: '7.4'
+
+ - uses: ./Nominatim/.github/actions/setup-postgresql
+ with:
+ postgresql-version: 13
+ postgis-version: 3
+
+ - name: Install Postgresql server dev
+ run: sudo apt-get install postgresql-server-dev-13
+
+ - uses: ./Nominatim/.github/actions/build-nominatim
+ with:
+ cmake-args: -DBUILD_MODULE=on
+
+ - name: Install test prerequsites
+ run: sudo apt-get install -y -qq python3-behave