From 82c87298fbff6b3e6fc23e63a1ad84af8acb1584 Mon Sep 17 00:00:00 2001 From: Sverre Nystad Date: Fri, 5 Jan 2024 01:06:33 +0100 Subject: [PATCH] Build: Kill docker after running tests in pipeline --- .github/workflows/django.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index b1ce6487..b0b0ab28 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -21,12 +21,10 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Build docker image + - name: Build docker image and run tests run: | cd backend docker compose build docker compose up - - name: Run Tests - run: | - cd backend - docker-compose run tutorai python manage.py test + docker compose run tutorai python manage.py test + docker compose down