-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
name: Django CI # Title of the GitHub Action | ||
name: Django CI | ||
|
||
on: [push, pull_request] # Events that trigger the workflow in all branches | ||
on: [push, pull_request] | ||
|
||
jobs: # The job contains process, and this process contains steps | ||
build: # A process called build | ||
runs-on: ubuntu-latest # The type of machine to run the job on | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: # Steps that the job will execute | ||
steps: | ||
- uses: actions/checkout@v3 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
|
||
- name: Set up Python 3.12.0 # Name of the step | ||
uses: actions/setup-python@v3 # Install Python 3.12.0 | ||
- name: Set up Python 3.12.0 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.12.0 # Version of Python to install | ||
python-version: 3.12.0 | ||
|
||
- name: Install Dependencies # Name of the step | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run Tests | ||
run: | | ||
python manage.py test | ||
- name: Run Server | ||
run: | | ||
python manage.py runserver |