enable python-bdd for github actions

This commit is contained in:
Sarah Hoffmann
2025-03-18 16:20:52 +01:00
parent 39f56ba4b8
commit 0f725b1880

View File

@@ -85,9 +85,6 @@ jobs:
env:
LUA_VERSION: ${{ matrix.lua }}
- name: Install test prerequisites
run: ./venv/bin/pip install behave==1.2.6
- name: Install test prerequisites (apt)
run: sudo apt-get install -y -qq python3-pytest python3-pytest-asyncio uvicorn python3-falcon python3-aiosqlite python3-pyosmium
if: matrix.dependencies == 'apt'
@@ -96,6 +93,9 @@ jobs:
run: ./venv/bin/pip install pytest-asyncio falcon starlette asgi_lifespan aiosqlite osmium uvicorn
if: matrix.dependencies == 'pip'
- name: Install test prerequisites
run: ./venv/bin/pip install behave==1.2.6 pytest-bdd
- name: Install latest flake8
run: ./venv/bin/pip install -U flake8
@@ -118,8 +118,10 @@ jobs:
- name: BDD tests
run: |
../../../venv/bin/python -m behave -DREMOVE_TEMPLATE=1 --format=progress3
working-directory: Nominatim/test/bdd
../venv/bin/python -m pytest test/bdd
cd test/bdd
../../../venv/bin/python -m behave -DREMOVE_TEMPLATE=1 --format=progress3 db osm2pgsql
working-directory: Nominatim
install:
runs-on: ubuntu-latest