diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fc49092..f84bcdd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -98,4 +98,29 @@ jobs: - name: Run build run: pnpm build - working-directory: ./dashboard \ No newline at end of file + working-directory: ./dashboard + + build-django: + if: github.event.pull_request.draft != true + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.10 + - name: Install Poetry + run: | + curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - + source $HOME/.poetry/env + poetry --version + + - name: Install dependencies + run: poetry install + working-directory: ./backend + - name: Run migrations (if applicable) + run: poetry run python manage.py migrate --no-input + working-directory: ./backend