Skip to content

fix: Temporary modifications to support Chrome 130. #948

fix: Temporary modifications to support Chrome 130.

fix: Temporary modifications to support Chrome 130. #948

# Copyright 2022 Kubespider
# SPDX-License-Identifier: Apache-2.0
name: Kubespider style check
on:
pull_request:
branches: [ 'main', 'release-*' ]
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install typing-extensions
pip install -r requirements.txt
cd downloaders
for downloader in $(ls)
do
cd ${downloader}
pip install -r requirements.txt
cd ..
done
- name: Analysing the code with pylint
run: |
ROOT=$(pwd)
pylint $(git ls-files '*.py' | grep -v "downloaders/") --max-line-length=240
skip_downloaders=(tiktok-dlp)
cd downloaders
for downloader in $(ls)
do
if [[ ${skip_downloaders[@]} =~ ${downloader} ]]; then
continue
fi
cd ${downloader}
pylint $(git ls-files '*.py') --max-line-length=240 --rcfile=${ROOT}/.pylintrc
cd ..
done
- name: MD link check
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
config-file: '.mdlintrc'
folder-path: './'