Skip to content

Commit

Permalink
Add github action workflow for django unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
fergmac committed Mar 28, 2024
1 parent 47b8a1f commit da95b37
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/django-unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Django Unit Tests

on: [push]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.6.9'

- name: Install Dependencies
run: |
cd app/backend
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test
run: |
cd app/backend
python manage.py test

0 comments on commit da95b37

Please sign in to comment.