Skip to content

Commit

Permalink
CI test:
Browse files Browse the repository at this point in the history
- разделение flake8 и mypy на отдельные jobы
  • Loading branch information
vovquewa committed Nov 8, 2023
1 parent 0dc246a commit fbd0bb8
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/mypy_flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: CI
on: [push, pull_request]

jobs:
lint:
flake8:
runs-on: ubuntu-latest
name: Статический анализ. Линтеры flake8 и mypy
name: flake8
steps:
- name: Установка Python
uses: actions/setup-python@v4
Expand All @@ -27,6 +27,26 @@ jobs:
- name: flake8
run: |
poetry run flake8
mypy:
runs-on: ubuntu-latest
name: mypy
steps:
- name: Установка Python
uses: actions/setup-python@v4
with:
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 fbd0bb8

Please sign in to comment.