Skip to content

FEATURE: check for software updates on the github server #870

FEATURE: check for software updates on the github server

FEATURE: check for software updates on the github server #870

Workflow file for this run

name: Pylint
on:
push:
paths:
- '**/*.py' # Watch for changes in any Python files
- 'pyproject.yml' # Watch for changes in the pyproject.yml file
workflow_dispatch:
release:
types: [published]
jobs:
pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
env:
UV_SYSTEM_PYTHON: 1
steps:
- name: Checkout
uses: actions/checkout@v4
# https://docs.astral.sh/uv/guides/integration/github/
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
# these extra packages are required by pylint to validate the python imports
run: |
uv pip install 'pylint>=3.3.2' defusedxml requests pymavlink pillow numpy matplotlib pyserial setuptools pytest
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')