Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI for modules #33

Open
gabelluardo opened this issue Jun 14, 2022 · 1 comment
Open

CI for modules #33

gabelluardo opened this issue Jun 14, 2022 · 1 comment

Comments

@gabelluardo
Copy link
Member

CI Action that will build and test all module one by one

@gabelluardo
Copy link
Member Author

This job ca be done for every module with its own tests:

- name: Test module `module-name` on arm
  uses: pguyot/arm-runner-action@v1
  with:
    commands: |
      cd modules/module-name
      apt-get update --fix-missing
      apt-get install -y --no-install-recommends python3-dev python3-setuptools python3-wheel python3-pip git $(cat package_list.txt)
      pip3 install poetry 
      poetry install
      poetry run pytest

for pip-only modules, like video:

- name: Test module `module-name` on arm
  uses: pguyot/arm-runner-action@v1
  with:
    commands: |
      cd modules/module-name
      apt-get update --fix-missing
      apt-get install -y --no-install-recommends python3-dev python3-setuptools python3-wheel python3-pip git $(cat package_list.txt)
      pip3 install -r requirements.txt 
      pip3 install pytest
      pytest

gabelluardo added a commit that referenced this issue Jul 13, 2022
gabelluardo added a commit that referenced this issue Jul 13, 2022
gabelluardo added a commit that referenced this issue Jul 13, 2022
@gabelluardo gabelluardo pinned this issue Aug 26, 2022
@gabelluardo gabelluardo changed the title Add proper CI CI for modules Aug 26, 2022
gabelluardo added a commit that referenced this issue Oct 31, 2022
* Started BOB refactoring [UNTESTED]:
 - moved modules in modules subdirectory
 - added modules readmes
 - removed old Docker stuff
 - cleaned startup scripts
 - added start_single script
 - removed bt and old_gear modules

* add: web UI in BOB repo

* fix: missing package_list file
add: cockpit installation

* add: poetry example with bob-core import and tests

* add: test poetry in accelerometer module

* add: working poetry env for accelerometer and csv

* add: workspace template example for module

* add: ci for tests and build

* rm: lock files

* fix: ci

* add: dynamic service path, ui structure as a module
rm: bob-core (mqtt run with docker and bt as a service)

* fix: remove ui as poetry module

* add: progress on modules refactoring with poetry

* finished poetry refactoring:
 - all modules use bob-core
 - all modules have poetry
 - all modules have a systemd service file that uses poetry python interpreter

* chore: add banner

* chore: fix shield

* add: bobui as a module
fix: create_module script

* fix: install stuff

* add: installation progress

* fix: video install

* add: hotplug for hdmi power on startup

* add(wip): async video module

Co-Authored-By: AlbertoEusebio <[email protected]>

* fix: update font with monospace one

* ci: disable action

* add(wip): better screen management with grid sector

* ci: disable action

* Delete dbus-org.bluez.service

* add(module): accelerometer wip with base functionalities

* Added CLI (#32)

* add: basic cli structure (wip)

* add: module-list & install commands

* add: bob cli commands, separated cli from webapp

* add: docs, setup command & video install

* changed default main

* Camera zoom and multisector (#38)

* add: zoom api

* fix: overlay buffer overflow

* fix: overlay destroy, content guard, zoom guard

* add: `OverlayElement` class

* fix: resolution (?)

* add: better main error recovery

* chore: bump `Pillow` and core

* add: multisector write

* fix: import error

* fix: font path

* chore(rm): `phoenix`, `csv`, `comunication`, `gpio`

* chore(mv): `external_mqtt` to `alice`

* chore(mv): `bt` to `sofia`

* tests(#33): add `video` build test

* test(ci): fix image

* fix(accelerometer): calibration zero

* test(#33): add `accelerometer` CI

* fix(accelerometer): import error

* chore(rm): useless files

* fix(accelerometer): error recovery

* add(video): rotation and framerate parameters

* fix: mosquitto docker

* add: overlay rotation param

* doc(accelerometer): update readme

* add(accelerometer): db write data

* add(video): mqtt sensor read

* chore: add example db with a base configuration

* add(video): config from db

* fix(video): db path

* chore(video): bump core

* add(video): recording mode

* fix(video): db config

* chore: update db for ant

* Refactoring ant module for asyncio (#34)

Co-authored-by: Alberto Eusebio <[email protected]>

* fix: camera overlay ant

* fix: database write

* add(ant): db write

* chore: better config params

* chore: better class methods on `AntReader`

* fix(ant): powermeter sensor

* add(ant): function for bin to int calculation

* add(ant): buffer for power and ctf calculation

* fix(ant): bin to int better semantic

* fix(ant): use a buffer for offset

* chore: update db

* fix: db conf

* fix(acc): handle exception db

* fix(video): color cadence and get param from db

* add(ant): nested dict for config

* add(video): data unit

* docs(ant): add documentations for sensors and db

* chore: rm unused modules

* chore: update readme

* docs: add davideaimar as a contributor for code, maintenance, ideas (#42)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* docs: add gabelluardo as a contributor for design, infra, test, doc (#43)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Gabriele Belluardo <[email protected]>

* Add CTF for srm powermeter (#41)

* chore(wip): calculations inserted

* chore(wip): implemented logic for Messagetype.crank_torque_freq

* fix: get parameters

* chore(wip): added buffer overflow constraints on payload

* add: buffer for power on ctf

* chore: private methods for computations

Co-authored-by: Alberto Eusebio <[email protected]>

* fix(ant): db write

* add: attribute for custom circumference

* ci: update poetry

* chore(ant): update lock file

* chroe: update db

* fix(ci): pip install poetry matching

* chore(ant): update hr sesors id

* fix(video): data unit

* fix(db): hr id taurusx

* fix(ant): db sensor value and ant doc

* docs(ant): add hall phoenix

* docs(ant): update hall sensor id cerberus

Co-authored-by: Davide Aimar <[email protected]>
Co-authored-by: AlbertoEusebio <[email protected]>
Co-authored-by: Marta <[email protected]>
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

No branches or pull requests

1 participant