From b56fd41b65a0c5751b16fa6f88c93faf68d1eca2 Mon Sep 17 00:00:00 2001 From: Kristof Daja Date: Sat, 13 Mar 2021 18:21:06 +0100 Subject: [PATCH] Added django-tests.yml --- .github/workflows/django-tests.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/django-tests.yml diff --git a/.github/workflows/django-tests.yml b/.github/workflows/django-tests.yml new file mode 100644 index 0000000..f30c238 --- /dev/null +++ b/.github/workflows/django-tests.yml @@ -0,0 +1,31 @@ +name: django-app-tests + +on: + push: + branches: + - '**' + +jobs: + job-run-django-app-tests: + name: Deploy DjangoExampleProject and run its integrated tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # Setup Python + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + # Install Dependencies + - name: Install pypa/build + run: >- + python -m + pip install + -r + requirements.txt + # Setup Django + - name: Deploy DjangoExampleProject + run: python manage.py migrate + # Run Django Tests + - name: Deploy DjangoExampleProject + run: python manage.py tests