Skip to content

Commit

Permalink
init:
Browse files Browse the repository at this point in the history
- poetry CI
  • Loading branch information
vovquewa committed Nov 8, 2023
1 parent 219b1eb commit 0dc246a
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/mypy_flake.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
name: flake8 Lint
name: CI

on: [push, pull_request]

jobs:
flake8-lint:
lint:
runs-on: ubuntu-latest
name: Проверка flake8
name: Статический анализ. Линтеры flake8 и mypy
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

run_mypy:
runs-on: ubuntu-latest
name: Mypy
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run Mypy
uses: jashparekh/mypy-action@v2
python-version: 3.11

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

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

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

0 comments on commit 0dc246a

Please sign in to comment.