Skip to content

ci: run the test suite on push and PR - #3

Merged
eiselesr merged 1 commit into
mainfrom
chore/add-ci
Aug 23, 2026
Merged

ci: run the test suite on push and PR#3
eiselesr merged 1 commit into
mainfrom
chore/add-ci

Conversation

@eiselesr

Copy link
Copy Markdown
Collaborator

This repo had no CI. app.MPPT now depends on it from git (tracking main),
so a break here reaches the application with nothing in between to catch it.

What runs

All 7 tests, on a clean ubuntu-latest runner:

7 passed in 22.2s

The integration test (tests/integration/test_mqthread.py) starts a real
amqtt broker on localhost — no hardware, no RIAPS platform install. amqtt
was already declared in [dependency-groups] dev; it had just never run
anywhere but a developer's machine.

tests/need_update_test_MqttDevice.py is the one exception: it imports
riaps.ctrl, which ships in the platform .deb and is not pip-installable.
Its filename already keeps pytest from collecting it, so no skip guard is
needed.

pixi.lock is re-locked here too

The committed lock was written in Feb 2026 and had drifted from
pyproject.toml. setup-pixi installs with --locked, so the first CI run
would have failed on the lock, not on the code. Re-locked and re-ran the suite
against it — still 7 passed.

Cost control

Same shape as app.MPPT's workflow: concurrency with cancel-in-progress so
a new push cancels the previous run, and timeout-minutes: 15.

This repo had no CI, and app.MPPT now depends on it from git (tracking main),
so a break here reaches the application with nothing in between to catch it.

All 7 tests run on a clean runner. The integration test starts a real amqtt
broker on localhost, so it needs no hardware and no RIAPS platform install —
amqtt was already declared in [dependency-groups] dev, it just was never run
anywhere but a developer's machine. tests/need_update_test_MqttDevice.py is
the one exception: it imports riaps.ctrl from the platform .deb, and its
filename already keeps pytest from collecting it.

pixi.lock is re-locked in the same commit. It was written in Feb 2026 and had
drifted from pyproject.toml, so setup-pixi's --locked install would have failed
on the first run. Verified the suite still passes against the refreshed lock.
@eiselesr
eiselesr merged commit b2006ea into main Aug 23, 2026
1 check passed
@eiselesr
eiselesr deleted the chore/add-ci branch August 23, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant