32 lines
713 B
YAML
32 lines
713 B
YAML
name: Analyze code
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "dev"
|
|
paths:
|
|
- "cdl_downloader**"
|
|
pull_request:
|
|
branches:
|
|
- "dev"
|
|
- "main"
|
|
paths:
|
|
- "cdl_downloader**"
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze code
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.10"
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r cdl_downloader/requirements.txt
|
|
pip install pylint
|
|
- name: Analysing the code with pylint
|
|
run: pylint --exit-zero $(git ls-files 'cdl_downloader/*.py') |