Skip to content

Commit

Permalink
Define env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
francbartoli committed Mar 3, 2024
1 parent 9c2701b commit edf4446
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,10 @@ jobs:
poetry install
poetry run uvicorn app.main:app --host 0.0.0.0 --port 6000 --reload --loop asyncio &
- name: Run schemathesis command and tests
env:
ENV_STATE: dev
OPA_ENABLED: false
API_KEY_ENABLED: true
JWKS_ENABLED: false
run: |
ENV_STATE=dev API_KEY_ENABLED=true JWKS_ENABLED=false poetry run st run -H "X-API-Key: pygeoapi" --checks all "http://0.0.0.0:6000/geoapi/openapi?f=json"
ENV_STATE=$ENV_STATE OPA_ENABLED=$OPA_ENABLED API_KEY_ENABLED=$API_KEY_ENABLED JWKS_ENABLED=$JWKS_ENABLED poetry run st run -H "X-API-KEY: pygeoapi" --checks all "http://0.0.0.0:6000/geoapi/openapi?f=json"

0 comments on commit edf4446

Please sign in to comment.