-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (26 loc) · 1.01 KB
/
event_pull_request.yaml
File metadata and controls
31 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Модуль содержит тесты для события pull request в главную ветку.
name: pull request event
on:
pull_request:
branches: [ main ]
jobs:
linter:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9' ]
name: linters with python ${{ matrix.python-version }} # Удобно же видеть какая сейчас версия.
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8==4.0.1 mypy==0.950 wemake-python-styleguide==0.16.1 types-requests==2.27.29
- name: Flake8
run: flake8 .
- name: Mypy
run: mypy .