Skip to content

Add pytest (#45)

Add pytest (#45) #7

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
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: 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.5.0
- name: Извлечение репозитория
uses: actions/checkout@v4
- name: Установка зависимостей
run: |
poetry install
- name: mypy
run: |
poetry run mypy .