Skip to content

Added as Python module-extension simple Rust dynamic library o… #297

Added as Python module-extension simple Rust dynamic library o…

Added as Python module-extension simple Rust dynamic library o… #297

Workflow file for this run

name: Conformance
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-quickstart:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
OGCAPIF_HOST: localhost
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Django image
uses: docker/build-push-action@v4
with:
context: .
provenance: false
file: docker/django/Dockerfile
push: true
pull: true
cache-from: type=registry,ref=opengisch/signalo-django:latest
cache-to: type=registry,ref=opengisch/signalo-django:latest,mode=max
tags: opengisch/signalo-django:latest
- name: Do quickstart
run: |
# copy default conf
cp .env.example .env
# start the stack
docker compose up --build -d
# deploy static files and migrate database
docker compose exec django python manage.py collectstatic --no-input
docker compose exec django python manage.py migrate --no-input
docker compose exec django python manage.py populate_vl
docker compose exec django python manage.py populate_signs_poles
- name: Healthcheck
run: wget --no-check-certificate https://localhost/oapif/collections/signalo_core.pole/items
- name: Run conformance test suite
run: docker compose run conformance_test
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: emailable-report
path: |
./_test_outputs/**/emailable-report.html
- name: Failure logs
if: failure()
run: docker-compose logs