-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Studio-Yandex-Practicum/feature/ci
init:
- Loading branch information
Showing
1 changed file
with
40 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |