changed django.yml
This commit is contained in:
parent
9990cdfa5a
commit
6a46dc0dcd
|
@ -1,10 +1,10 @@
|
|||
name: Django CI
|
||||
name: Django CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
branches: [ "main" ]
|
||||
env:
|
||||
HOSTING_URL: "http://localhost:8000/"
|
||||
DEBUG: True
|
||||
|
@ -26,7 +26,8 @@ env:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
services:
|
||||
postgres:
|
||||
|
@ -40,24 +41,24 @@ jobs:
|
|||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||
|
||||
strategy:
|
||||
max-parallel: 4
|
||||
max-parallel: 4
|
||||
matrix:
|
||||
python-version: [3.9]
|
||||
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
|
||||
- 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
|
||||
|
|
Loading…
Reference in New Issue