+ needs: create-archive
+ strategy:
+ matrix:
+ flavour: [oldstuff, "ubuntu-20", "ubuntu-22"]
+ include:
+ - flavour: oldstuff
+ ubuntu: 20
+ postgresql: '9.6'
+ postgis: '2.5'
+ lua: '5.1'
+ - flavour: ubuntu-20
+ ubuntu: 20
+ postgresql: 13
+ postgis: 3
+ lua: '5.3'
+ - flavour: ubuntu-22
+ ubuntu: 22
+ postgresql: 15
+ postgis: 3
+ lua: '5.3'
+
+ runs-on: ubuntu-${{ matrix.ubuntu }}.04
+
+ steps:
+ - uses: actions/download-artifact@v4
+ with:
+ name: full-source
+
+ - name: Unpack Nominatim
+ run: tar xf nominatim-src.tar.bz2
+
+ - uses: actions/setup-python@v4
+ with:
+ python-version: 3.7
+ if: matrix.flavour == 'oldstuff'
+
+ - uses: ./Nominatim/.github/actions/setup-postgresql
+ with:
+ postgresql-version: ${{ matrix.postgresql }}
+ postgis-version: ${{ matrix.postgis }}
+
+ - uses: ./Nominatim/.github/actions/build-nominatim
+ with:
+ flavour: ${{ matrix.flavour }}
+ lua: ${{ matrix.lua }}
+
+ - name: Install test prerequsites (behave from apt)
+ run: sudo apt-get install -y -qq python3-behave
+ if: matrix.flavour == 'ubuntu-20'
+
+ - name: Install test prerequsites (behave from pip)
+ run: pip3 install behave==1.2.6
+ if: (matrix.flavour == 'oldstuff') || (matrix.flavour == 'ubuntu-22')
+
+ - name: Install test prerequsites (from apt for Ununtu 2x)
+ run: sudo apt-get install -y -qq python3-pytest python3-pytest-asyncio uvicorn
+ if: matrix.flavour != 'oldstuff'
+
+ - name: Install newer pytest-asyncio
+ run: pip3 install -U pytest-asyncio==0.21.1
+ if: matrix.flavour == 'ubuntu-20'
+
+ - name: Install test prerequsites (from pip for Ubuntu 18)
+ run: pip3 install pytest pytest-asyncio uvicorn
+ if: matrix.flavour == 'oldstuff'
+
+ - name: Install Python webservers
+ run: pip3 install falcon starlette asgi_lifespan
+
+ - name: Install latest pylint
+ run: pip3 install -U pylint
+ if: matrix.flavour != 'oldstuff'
+
+ - name: Python linting
+ run: python3 -m pylint nominatim
+ working-directory: Nominatim
+ if: matrix.flavour != 'oldstuff'
+
+ - name: Python unit tests
+ run: python3 -m pytest test/python
+ working-directory: Nominatim
+
+ - name: BDD tests
+ run: |
+ python3 -m behave -DREMOVE_TEMPLATE=1 -DBUILDDIR=$GITHUB_WORKSPACE/build --format=progress3
+ working-directory: Nominatim/test/bdd
+
+ - 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