Skip to content

Commit

Permalink
Update django.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
war-nightmare authored Nov 25, 2023
1 parent 8a13085 commit 26bb907
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
name: Django CI
name: Run Django Development Server

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches:
- main

jobs:
build:

runserver:
runs-on: ubuntu-latest
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
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Test
- name: Run Django Development Server
run: |
python manage.py test
python manage.py migrate
python manage.py runserver 0.0.0.0:22424

0 comments on commit 26bb907

Please sign in to comment.