https://dev.kronoz.win/r/marzneshin.git
1name: Lint
2on:
3 push:
4 branches: [ "master" ]
5 paths:
6 - 'app/**'
7 pull_request:
8 branches: [ "master" ]
9 paths:
10 - 'app/**'
11
12jobs:
13 lint:
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@v3
17
18 - name: black
19 uses: psf/black@stable
20 with:
21 options: "--check --verbose"
22 src: "./app"
23
24 - name: Set up Python 3.11.2
25 uses: actions/setup-python@v3
26 with:
27 python-version: 3.11.2
28
29 - name: Install dependencies
30 run: |
31 python -m pip install --upgrade pip
32 pip install pylint
33 pip install -r requirements.txt
34
35 - name: Lint with pylint
36 run: |
37 pylint --exit-zero "$(git ls-files '*.py')"