forked from Tarh-76/Python-package-vacuum-map-parser-ijai
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 962 Bytes
/
code_quality.yaml
File metadata and controls
42 lines (36 loc) · 962 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
name: Code Quality
on:
pull_request:
branches:
- master
push:
jobs:
code_quality:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- id: black
name: Check code with black
- id: isort
name: Check code with isort
- id: pylint
name: Check code with pylint
- id: mypy
name: Check code with mypy
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
id: python
with:
python-version: "3.11"
- name: Install workflow dependencies
run: |
pip install -r .github/workflows/requirements.txt
- name: Install Python dependencies
run: poetry install --no-interaction
- name: Run ${{ matrix.id }} checks
run: poetry run ${{ matrix.id }} src