Skip to content

Commit

Permalink
Add a dedicated step for schemathesis
Browse files Browse the repository at this point in the history
  • Loading branch information
francbartoli committed Mar 3, 2024
1 parent ffcfa7b commit e9cdf90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit e9cdf90

Please sign in to comment.