-
Notifications
You must be signed in to change notification settings - Fork 11
57 lines (46 loc) · 1.46 KB
/
addon-validations.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
47
48
49
50
51
52
53
54
55
56
57
name: Add-on Validations
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
addon-validations:
if: github.repository == 'anxdpanic/plugin.video.composite_for_plex'
name: Add-on Validations
runs-on: ubuntu-latest
steps:
- name: Set up Python v3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Checkout Add-on
uses: actions/checkout@v3
with:
path: ${{ github.event.repository.name }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install arrow
python -m pip install requests
python -m pip install isort
python -m pip install pylint
python -m pip install git+https://github.com/xbmc/addon-check.git
- name: Kodi Add-on Checker (Nexus)
id: kodi-addon-checker-jarvis
run: |
kodi-addon-checker ${{ github.event.repository.name }} --branch=nexus
continue-on-error: true
- name: Pylint
id: pylint
run: |
cp -t ${HOME} .pylintrc
pylint resources/lib/
continue-on-error: true
working-directory: ${{ github.event.repository.name }}
- name: isort
id: isort
run: |
isort --force-single-line-imports . --diff
continue-on-error: true
working-directory: ${{ github.event.repository.name }}