Files
meshcore-repeater-observer/.gitea/workflows/ci.yml
T
tthandClaude Opus 5.5 0da25dd15b
ci / test (push) Successful in 1m15s
meshcore-repeater-observer 0.1.0
Reads a MeshCore repeater's console over BLE or USB and publishes what it
hears: the `pktlog` raw-frame feed in the meshcoretomqtt format (community
analyzer with a JWT signed by the node's key, audience = broker hostname, or
an own broker without auth) and optionally stats, `nodes`, `rxlog` to a local
MQTT broker. Needs the observer build of meshcore-tth.

Tested on a XIAO with the observer build over USB and over BLE: feed in the
meshcoretomqtt format, packet hashes matching those of other observers.
Unit tests for the parsers, the packet transform, the Ed25519 signature
(checked against `cryptography`), the JWT and paho-mqtt 1.x/2.x; README
(Czech), AGENTS.md, CI, Renovate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:20:03 +01:00

45 lines
970 B
YAML

# Lint + tests on every push and PR; the image is built by image.yml.
name: ci
"on":
push:
pull_request:
workflow_dispatch:
env:
RUFF_VERSION: "0.15.7"
MYPY_VERSION: "1.19.1"
YAMLLINT_VERSION: "1.38.0"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: gitleaks
uses: https://git.rfa.cz/tth-pub/ci-actions/gitleaks@v11
with:
mode: block
- uses: actions/setup-python@v7
with:
python-version: "3.15"
- name: Install
run: |
set -euo pipefail
python -m pip install --quiet ".[dev]" \
"ruff==$RUFF_VERSION" "mypy==$MYPY_VERSION" "yamllint==$YAMLLINT_VERSION"
- name: Lint
run: |
set -euo pipefail
ruff check .
ruff format --check .
mypy meshcore_repeater_observer.py
yamllint .gitea .yamllint
- name: Tests
run: python -m pytest -q