Files
daynivo-kiosk-os/.github/workflows/ci.yml
T
rothmanandClaude Opus 5.5 348644a48a
CI / test-bookworm (push) Successful in 29s
CI / test-latest (push) Successful in 33s
Release / package (push) Successful in 32s
Release / image (push) Successful in 45m5s
CI: drop the pull_request trigger
The self-hosted runner allows privileged containers; a fork's pull
request could otherwise run its own workflow with root on that machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:49:09 +01:00

40 lines
1.5 KiB
YAML

name: CI
# Only pushes to this repository, no pull_request: the runner allows privileged
# containers, and a pull request from a fork could otherwise run its own
# workflow with root access on the runner machine.
on:
push:
branches: ["**"]
jobs:
test-bookworm:
# Same Python, Flask and argon2 versions as Raspberry Pi OS Bookworm.
runs-on: ubuntu-latest
container: debian:bookworm
steps:
- name: Install Debian packages
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates git python3 python3-flask python3-argon2 python3-websocket python3-pytest shellcheck
- name: Checkout
# Plain git: JavaScript actions need Node, which debian:bookworm doesn't have.
run: |
git clone "${{ github.server_url }}/${{ github.repository }}.git" .
git checkout "${{ github.sha }}"
- name: Tests
run: python3 -m pytest -p no:cacheprovider
- name: Shellcheck
run: shellcheck -S warning install.sh install-online.sh update.sh uninstall.sh tools/release-upload.sh image/build.sh image/stage-voxip/prerun.sh image/stage-voxip/00-voxip/00-run.sh bin/voxip-kiosk-x
test-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install -r requirements-dev.txt
- run: python -m pytest