From 428488d2f7816cd3c8f330ea3e2a60ab9f5de5a9 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Sun, 11 Feb 2024 19:39:53 +0100 Subject: [PATCH] Django tests --- .github/workflows/django.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index e69de29..f26e702 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -0,0 +1,30 @@ +name: Django CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.8, 3.9, 3.11] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run Tests + run: | + python manage.py test