Skip to content

Update labeler.yml (#49) #143

Update labeler.yml (#49)

Update labeler.yml (#49) #143

Workflow file for this run

name: Linter Python Code
on:
push:
branches:
- main
- develop
- dev
pull_request:
branches:
- main
- develop
- dev
jobs:
py-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install MariaDB Connector/C
run: |
sudo apt-get update
sudo apt-get install -y libmariadb-dev
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: List files
run: ls -R
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install pylint
run: pip install pylint
- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-cache-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-cache-
- name: Set PYTHONPATH
run: |
echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
- name: Run Pylint
run: |
pylint **/*.py
- name: Summary
run: |
echo "Python Linter completed. Check the results above."