Skip to content

[FR - MYCANAL] python2 fix and force 640p in DRM for devices not certified #642

[FR - MYCANAL] python2 fix and force 640p in DRM for devices not certified

[FR - MYCANAL] python2 fix and force 640p in DRM for devices not certified #642

Workflow file for this run

name: Pull request check
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
# Flake
flake:
name: Run flake8 linter
runs-on: ubuntu-latest
steps:
- name: Check out plugin repository
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Run flake8
uses: py-actions/flake8@v2
with:
max-line-length: "100"
# Test add-on python files
test-plugin-modules:
name: Load each Python files of the addon to detect errors
needs: flake
runs-on: ubuntu-latest
steps:
- name: Check out plugin repository
uses: actions/checkout@v2
with:
path: plugin.video.catchuptvandmore
- name: Check out simulator repository
uses: actions/checkout@v2
with:
path: simulator
repository: Catch-up-TV-and-More/catchuptvandmore-test
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
working-directory: simulator
run: pip install -r requirements.txt
- name: Start catchuptvandmore-test with test_modules config
working-directory: simulator
run: python main.py --test-modules -a ../plugin.video.catchuptvandmore
# # Check the plugin with kodi-addon-checker
# kodi-addon-checker:
# name: Kodi-addon-checker
# needs: test-plugin-modules
# runs-on: ubuntu-latest
# steps:
# - name: Check out plugin repository
# uses: actions/checkout@v2
# - name: Set up Python 3.8
# uses: actions/setup-python@v1
# with:
# python-version: 3.8
# - name: Install kodi-addon-checker
# run: pip install kodi-addon-checker==0.0.16
# - name: Run kodi-addon-checker
# run: kodi-addon-checker --branch krypton --allow-folder-id-mismatch ./plugin.video.catchuptvandmore
# Branch check
branch:
name: Base branch check
runs-on: ubuntu-latest
if: github.base_ref != 'dev'
steps:
- name: Branch dev check
run: |
echo "Pull request need to be done on dev branch and not on ${{ github.base_ref }}"
exit 1