Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Runs on every push and pull request: the laptop side (pc/) and the dashboard (web/).
# The firmware needs Infineon's ModusToolbox and is checked on the board
# (firmware/tools/recovery_test.py); the trained models' tests skip here, as the models are
# built locally (ml/README.md).
name: tests

on:
push:
pull_request:

jobs:
pc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements.txt
- name: PC tests (server, Brain, recorder, replays of recordings)
run: python -m unittest discover -s pc/tests -t pc -v

web:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: npm ci
- run: npm test
- run: npm run build
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

🏆 JPHACKS 2026 Hack Day Audience Award(広島会場)受賞

[![tests](https://github.com/jphacks/hs_2605/actions/workflows/tests.yml/badge.svg)](https://github.com/jphacks/hs_2605/actions/workflows/tests.yml)

[![デモ動画:息を止めると、スマートフォンに緊急の通知が届く](docs/videos/demo_1_no_breathing.jpg)](https://jphacks.github.io/hs_2605/videos/demo_1_no_breathing.mp4)

▶ 画像をクリックするとデモ動画が開きます(息を止めると警告が出るまで)。ほかの動画は[デモ動画](#デモ動画)にあります。
Expand Down
Loading