-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.2 KB
/
code_quality.yaml
File metadata and controls
50 lines (42 loc) · 1.2 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
on:
pull_request:
branches:
- master
push:
jobs:
code_quality:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- id: ruff
name: Check code with ruff format
- id: isort
name: Check code with isort
# Temporarily disabled pylint check due to refactoring
# - id: pylint
# name: Check code with pylint
steps:
- name: Checkout the repository
uses: actions/checkout@v6
- name: Set up Python 3
uses: actions/setup-python@v6
id: python
with:
python-version: "3.13"
- name: Install Poetry
run: pip install poetry
- name: Configure Poetry virtualenv in project
run: poetry config virtualenvs.create true
- name: Install Python dependencies
run: poetry install --no-interaction --with dev
- name: Run ${{ matrix.id }} checks
run: |
if [ "${{ matrix.id }}" == "ruff" ]; then
poetry run ruff format SCR
else
poetry run ${{ matrix.id }} SCR
fi
- name: Clear Poetry Cache
run: poetry cache clear --all pypi