Skip to content

test docker on alpine #97

test docker on alpine

test docker on alpine #97

name: Django App Test
on:
push:
branches:
- main
jobs:
build-and-test:
runs-on: alpine-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Docker and Docker Compose
run: |
apk add --no-cache docker docker-compose
service docker start
docker-compose --version
- name: Build and Test
working-directory: ./code
run: |
docker-compose build
docker-compose up -d
sleep 10
docker-compose run app bash -c "python manage.py test main.tests.URLTests.homepage"
docker-compose down