forked from s0faking/plugin.video.orftvthek
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (43 loc) · 1.16 KB
/
check.yml
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
on: [push, pull_request]
jobs:
kodi-addon-checker:
runs-on: ubuntu-latest
name: Kodi Addon-Checker
steps:
- name: checkout
uses: actions/checkout@v4
- name: Run Kodi Addon-Checker
id: kodi-addon-checker
uses: xbmc/[email protected]
with:
kodi-version: matrix
addon-id: ${{ github.event.repository.name }}
autopep8:
runs-on: ubuntu-latest
name: autopep8
steps:
- name: checkout
uses: actions/checkout@v4
- name: Run autopep8
id: autopep8
uses: peter-evans/autopep8@v2
with:
args: --aggressive --diff --exit-code --experimental --max-line-length 173 --recursive resources/lib
- name: Fail if autopep8 made changes
if: steps.autopep8.outputs.exit-code == 2
run: exit 1
pylint:
runs-on: ubuntu-latest
name: pylint
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Run pylint
id: pylint
run: pylint resources/lib