workflows: add Kodi Addon Submitter deployment #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |