Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sketch integration tests #14

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,51 @@ jobs:
name: ${{ matrix.python-version }}
fail_ci_if_error: false

integration:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Build api image
run: docker compose build api

- name: Launch api
run: docker compose up -d api
env:
TITILER_OPENEO_STAC_API_URL: https://stac.eoapi.dev
TITILER_OPENEO_SERVICE_STORE_URL: services/eoapi.json

- name: Sleep for 10 seconds
run: sleep 10s
shell: bash

- name: Install dependencies
run: |
python -m pip install --upgrade pip

- name: Install OpenEO test suite
run: |
git clone --recurse-submodules -b feature/switch-to-https-submodules-urls https://github.com/vincentsarago/openeo-test-suite.git
cd openeo-test-suite
python -m pip install -e .

- name: Run openeo-test-suite
run: |
cd openeo-test-suite
python -m pytest src/openeo_test_suite/tests/collections --openeo-backend-url=http://0.0.0.0:8081
env:
OPENEO_AUTH_METHOD: basic
OPENEO_AUTH_BASIC_USERNAME: anonymous
OPENEO_AUTH_BASIC_PASSWORD: password

- name: Stop services
run: docker compose stop

# publish:
# needs: [tests]
# runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ services:
# - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
# TiTiler STAC API Config
- TITILER_OPENEO_API_DEBUG=TRUE
# - TITILER_OPENEO_API_STAC_API_URL=${TITILER_OPENEO_API_STAC_API_URL}
- TITILER_OPENEO_STAC_API_URL=${TITILER_OPENEO_STAC_API_URL}
- TITILER_OPENEO_SERVICE_STORE_URL=${TITILER_OPENEO_SERVICE_STORE_URL}
env_file:
- path: .env
required: false
volumes:
- ./services:/tmp/services

openeo:
platform: linux/amd64
Expand Down
Loading