Skip to content

Create test-docker.yml #70 #1

Create test-docker.yml #70

Create test-docker.yml #70 #1

Workflow file for this run

name: Build and test docker image
on:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: |
docker compose -f docker-compose.yml build
docker compose -f docker-compose.yml up -d
sleep 30 # wait until compose is up
docker compose exec webapp /bin/bash -c "export LORC_DB_HOST= && python manage.py test"