Create test-docker.yml #70 #1
This file contains 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: 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" | |