diff --git a/.github/workflows/django-tests.yml b/.github/workflows/django-tests.yml new file mode 100644 index 0000000..0c4623a --- /dev/null +++ b/.github/workflows/django-tests.yml @@ -0,0 +1,28 @@ +name: Django Tests + +on: [push, pull_request] + +jobs: + django-tests: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: true + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install dependencies + run: | + pip install -r mimir-server/requirements.txt + working-directory: ${{ github.workspace }} + + - name: Run Django Tests + run: | + python manage.py test + working-directory: ${{ github.workspace }}/mimir-server