From 0f725b188086af0801f020dd894d06ff6a404ce1 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 18 Mar 2025 16:20:52 +0100 Subject: [PATCH] enable python-bdd for github actions --- .github/workflows/ci-tests.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index a8bf957f..520fcff8 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -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 -- 2.39.5