-
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.
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see actions/runner-images#10636
- Loading branch information
1 parent
bfd8283
commit a39e214
Showing
1 changed file
with
32 additions
and
25 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,35 @@ | ||
name: Django CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run migrations | ||
run: python manage.py migrate | ||
|
||
- name: Run tests | ||
run: python manage.py test | ||
jobs: #Начало секции джобов | ||
print_hello: #Название джоба | ||
runs-on: ubuntu-latest #Среда выполнения джоба | ||
|
||
steps: #Начало секции шагов | ||
- name: Print hello #Название шага | ||
run: echo "Hello world!" #Команда, которая будет выполнена в терминале | ||
|
||
#jobs: | ||
# | ||
# test: | ||
# runs-on: ubuntu-latest | ||
# | ||
# steps: | ||
# - name: Check out code | ||
# uses: actions/checkout@v3 | ||
# | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: '3.12' | ||
# | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install -r requirements.txt | ||
# | ||
# - name: Run migrations | ||
# run: python manage.py migrate | ||
# | ||
# - name: Run tests | ||
# run: python manage.py test |