From 1f4aea63971a210305caa16e8e22f9a2e8c1fd84 Mon Sep 17 00:00:00 2001 From: Jacob Dodson <32625153+jcdodson@users.noreply.github.com> Date: Thu, 7 Dec 2023 19:54:30 -0800 Subject: [PATCH] Update tests.yml --- .github/workflows/tests.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8b13789..42c1144 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1 +1,43 @@ +name: Django Tests +on: + push: + branches: + - main + - tidyup + pull_request: + branches: + - main + - tidyup + +jobs: + install: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: | + sudo apt-get update + + build: + needs: install + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: 3.11 + + - name: Install Dependencies + run: | + cd ScheduleBuilder + pip install -r requirements.txt + + - name: Server Start + env: + CAL_ID: c_6ed17073345c64d5b392f5a8ef7b4a62938f12c8fc5fecfa4b7256ef88acad28@group.calendar.google.com + run: | + cd ScheduleBuilder + python manage.py ScheduleBuilder/google_calendar/test.py