Skip to content

Commit

Permalink
Merge pull request #31 from Studio-Yandex-Practicum/feature/ci
Browse files Browse the repository at this point in the history
init:
  • Loading branch information
Raidzin authored Nov 9, 2023
2 parents 219b1eb + 9092413 commit d4b39b6
Showing 1 changed file with 40 additions and 18 deletions.
58 changes: 40 additions & 18 deletions .github/workflows/mypy_flake.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,52 @@
name: flake8 Lint
name: CI

on: [push, pull_request]

jobs:
flake8-lint:
flake8:
runs-on: ubuntu-latest
name: Проверка flake8
name: flake8
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
- name: Установка Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: flake8 Lint
uses: py-actions/flake8@v2
python-version: 3.11

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

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

- name: Установка зависимостей
run: |
poetry install
run_mypy:
- name: flake8
run: |
poetry run flake8
mypy:
runs-on: ubuntu-latest
name: Mypy
name: mypy
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run Mypy
uses: jashparekh/mypy-action@v2
- name: Установка Python
uses: actions/setup-python@v4
with:
requirements:
- django-stubs django
- types-openpyxl
python-version: 3.11

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

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

- name: Установка зависимостей
run: |
poetry install
- name: mypy
run: |
poetry run mypy .

0 comments on commit d4b39b6

Please sign in to comment.