Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see actions/runner-images#10636
  • Loading branch information
MichaelGorbunov committed Jan 10, 2025
1 parent bfd8283 commit a39e214
Showing 1 changed file with 32 additions and 25 deletions.
57 changes: 32 additions & 25 deletions .github/workflows/habits_ci.yml
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

0 comments on commit a39e214

Please sign in to comment.