Skip to content

Commit

Permalink
Таска 2. Обновление workflow (#61)
Browse files Browse the repository at this point in the history
* Добавлены миграции

* Добавлены миграции

* Обновил workflow

* Обновил workflow
  • Loading branch information
PetrNazarov authored Dec 16, 2023
1 parent d27e9a6 commit 80f7ea7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,31 @@ name: CI
on: [push, pull_request]

jobs:
isort:
runs-on: ubuntu-latest
name: isort
steps:
- name: Установка Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Установка Poetry
uses: snok/install-poetry@v1
with:
poetry-version: 1.5.0

- name: Извлечение репозитория
uses: actions/checkout@v4

- name: Установка зависимостей
run: |
poetry install
- name: isort
run: |
poetry run isort .
flake8:
runs-on: ubuntu-latest
name: flake8
Expand All @@ -15,7 +40,7 @@ jobs:
- name: Установка Poetry
uses: snok/install-poetry@v1
with:
poetry-version: 1.7.0
poetry-version: 1.5.0

- name: Извлечение репозитория
uses: actions/checkout@v4
Expand All @@ -27,6 +52,7 @@ jobs:
- name: flake8
run: |
poetry run flake8
mypy:
runs-on: ubuntu-latest
name: mypy
Expand All @@ -39,7 +65,7 @@ jobs:
- name: Установка Poetry
uses: snok/install-poetry@v1
with:
poetry-version: 1.7.0
poetry-version: 1.5.0

- name: Извлечение репозитория
uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.7 on 2023-12-06 21:06

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('main', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='player',
name='patronymic',
field=models.CharField(blank=True, default='', max_length=256, verbose_name='Отчество'),
),
]

0 comments on commit 80f7ea7

Please sign in to comment.