Skip to content

rework mqtt sink according to update aiomqtt library #300

rework mqtt sink according to update aiomqtt library

rework mqtt sink according to update aiomqtt library #300

name: Python code checks
on:
push:
branches:
- "**"
pull_request:
branches:
- master
workflow_dispatch:
jobs:
check_python_code:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
name: Code checks with Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: |
pipx install poetry~=2.1.3
python --version; python -m pip --version; poetry --version
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Setup project with Poetry
run: poetry install --no-interaction
- name: Check code style
run: poetry run poe format_check
- name: Check import order
run: poetry run poe isort_check
- name: Lint with pylint
run: poetry run poe lint_check
- name: Run unit tests
run: poetry run poe test