From e4f5b4f8c52e32fb6f0a94aa43407a82a3b32af5 Mon Sep 17 00:00:00 2001 From: Mariana Sartorato Date: Fri, 21 Jun 2024 18:11:29 -0300 Subject: [PATCH] chore(#1): add workflow build for backend closes #1 --- .github/workflows/ci.yaml | 28 +++++++++++++++++++++- dashboard/src/components/Button/Button.tsx | 1 - 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fc49092..f8a97ea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -98,4 +98,30 @@ 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: | + python -m pip install --upgrade pip + pip install poetry + + - name: Install dependencies + run: poetry install + working-directory: ./backend + + - name: Run migrations + run: poetry run python manage.py migrate --no-input + working-directory: ./backend diff --git a/dashboard/src/components/Button/Button.tsx b/dashboard/src/components/Button/Button.tsx index c33be6e..53d4ddb 100644 --- a/dashboard/src/components/Button/Button.tsx +++ b/dashboard/src/components/Button/Button.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import './button.css'; interface ButtonProps {