From e9cdf903f1ebfcbb280df3c846f0adc8f42ea644 Mon Sep 17 00:00:00 2001 From: Francesco Bartoli Date: Sun, 3 Mar 2024 23:56:30 +0100 Subject: [PATCH] Add a dedicated step for schemathesis --- .github/workflows/contract-tests.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/contract-tests.yml b/.github/workflows/contract-tests.yml index 5b09355..c883386 100644 --- a/.github/workflows/contract-tests.yml +++ b/.github/workflows/contract-tests.yml @@ -40,7 +40,10 @@ jobs: sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install gdal-bin libgdal-dev - - name: Install fastgeoapi and run schemathesis tests + - name: Install fastgeoapi and run the server run: | poetry install - poetry run uvicorn app.main:app --host 0.0.0.0 --port 6000 --reload --loop asyncio && poetry run st run --checks all "http://0.0.0.0:6000/openapi?f=json" + poetry run uvicorn app.main:app --host 0.0.0.0 --port 6000 --reload --loop asyncio + - name: Run schemathesis command and tests + run: | + poetry run st run --checks all "http://0.0.0.0:6000/geoapi/openapi?f=json"