Skip to content

Build: Kill docker after running tests in pipeline #65

Build: Kill docker after running tests in pipeline

Build: Kill docker after running tests in pipeline #65

Workflow file for this run

name: Django CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Build docker image and run tests
run: |
cd backend
docker compose build
docker compose up
docker compose run tutorai python manage.py test
docker compose down