Skip to content

genericmiot: add metadata command and cgllc-spec namespace #1854

genericmiot: add metadata command and cgllc-spec namespace

genericmiot: add metadata command and cgllc-spec namespace #1854

Workflow file for this run

name: CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch: # to allow manual re-runs
jobs:
linting:
name: "Perform linting checks"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: "actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5" # v4.3.1
- uses: "astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e" # v6
with:
enable-cache: true
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: uv sync --extra docs
- name: "Run pre-commit hooks"
run: uv run pre-commit run --all-files --verbose
tests:
name: "Python ${{ matrix.python-version}} on ${{ matrix.os }}"
needs: linting
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: "actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5" # v4.3.1
- uses: "astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e" # v6
with:
enable-cache: true
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: uv sync --all-extras
- name: "Run tests"
run: uv run pytest --cov miio --cov-report xml
- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac" # v5.5.5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}