Add CI workflow to test CITE compliance #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Perform CITE tests against a local teamengine instance' | |
on: | |
push: | |
pull_request: | |
env: | |
COLUMNS: 120 | |
jobs: | |
perform-cite-testing: | |
name: ${{ matrix.test-suite.suite-id }} CITE testing | |
# continue-on-error: true | |
continue-on-error: false | |
strategy: | |
fail-fast: false | |
matrix: | |
test-suite: | |
- suite-id: ogcapi-features-1.0 | |
arguments: >- | |
iut=http://host.docker.internal:5001 | |
noofcollections=-1 | |
- suite-id: ogcapi-processes-1.0 | |
arguments: >- | |
iut=http://host.docker.internal:5001 | |
noofcollections=-1 | |
- suite-id: ogcapi-edr10 | |
arguments: >- | |
iut=http://host.docker.internal:5001 | |
apiDefinition=http://host.docker.internal:5001/openapi | |
- suite-id: ogcapi-tiles-1.0 | |
arguments: >- | |
iut=http://host.docker.internal:5001 | |
tilematrixsetdefinitionuri=http://www.opengis.net/def/tilematrixset/OGC/1.0/WebMercatorQuad | |
urltemplatefortiles=http://localhost:5001/collections/lakes/tiles/WebMercatorQuad/{tileMatrix}/{tileRow}/{tileCol}?f=mvt | |
tilematrix=0 | |
mintilerow=0 | |
maxtilerow=1 | |
mintilecol=0 | |
maxtilecol=1 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: grab code | |
uses: actions/checkout@v4 | |
- name: start pygeoapi with suitable CITE data and config | |
run: > | |
docker compose -f tests/cite/compose.test-cite.yaml up --detach | |
- name: wait for pygeoapi to be usable | |
uses: raschmitt/wait-for-healthy-container@v1.0.1 | |
with: | |
container-name: pygeoapi-cite-pygeoapi-1 | |
timeout: 120 | |
- name: test {{ matrix.test-suite.suite-id }} compliance | |
uses: OSGeo/cite-runner@v0.2.0 | |
with: | |
test_suite_identifier: ${{ matrix.test-suite.suite-id }} | |
test_session_arguments: ${{ matrix.test-suite.arguments }} |