From 6a46dc0dcdec294d0766d01d4fe2efd744755fce Mon Sep 17 00:00:00 2001 From: Vangipuram Nitin Date: Fri, 19 Jul 2024 15:07:12 +0530 Subject: [PATCH] changed django.yml --- .github/workflows/django.yml | 63 ++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index b6cb274..a1e7a09 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -1,11 +1,11 @@ -name: Django CI +name: Django CI -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] -env: +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +env: HOSTING_URL: "http://localhost:8000/" DEBUG: True EMAIL: karthik.murakonda14@gmail.com @@ -24,9 +24,10 @@ env: EMAIL_ID: 200010030@iitdh.ac.in ROLL_NO: 200010030 -jobs: - build: - runs-on: ubuntu-latest +jobs: + build: + + runs-on: ubuntu-latest services: postgres: @@ -39,25 +40,25 @@ jobs: - 5432:5432 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 - strategy: - max-parallel: 4 - matrix: - python-version: [3.9] + strategy: + max-parallel: 4 + matrix: + python-version: [3.9] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install Dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Run Tests - run: | - cd CDC_Backend - python manage.py collectstatic - python manage.py makemigrations - python manage.py makemigrations APIs - python manage.py test + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run Tests + run: | + cd CDC_Backend + python manage.py collectstatic + python manage.py makemigrations + python manage.py makemigrations APIs + python manage.py test