Skip to content

Run TurtleTerm smoke and branding checks in CI #2

Run TurtleTerm smoke and branding checks in CI

Run TurtleTerm smoke and branding checks in CI #2

name: TurtleTerm Script Checks
on:
pull_request:
paths:
- 'assets/sourceos/**'
- 'docs/sourceos/**'
- 'packaging/homebrew/**'
- 'packaging/scripts/**'
- 'README.md'
- '.github/workflows/turtle-term-scripts.yml'
push:
branches:
- main
paths:
- 'assets/sourceos/**'
- 'docs/sourceos/**'
- 'packaging/homebrew/**'
- 'packaging/scripts/**'
- 'README.md'
- '.github/workflows/turtle-term-scripts.yml'
workflow_dispatch:
jobs:
script-and-brand-checks:
name: Script, smoke, and brand checks
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Check shell script syntax
run: |
bash -n packaging/scripts/install-turtle-term.sh
bash -n packaging/scripts/package-turtle-term.sh
bash -n packaging/scripts/bootstrap-homebrew-tap.sh
- name: Check Python script syntax
run: |
python3 -m py_compile packaging/scripts/render-stable-homebrew-formula.py
python3 -m py_compile assets/sourceos/bin/sourceos-term
python3 -m py_compile assets/sourceos/bin/turtle-term
python3 -m py_compile assets/sourceos/tests/test_sourceos_term_smoke.py
python3 -m py_compile assets/sourceos/tests/test_turtle_term_branding.py
- name: Run TurtleTerm smoke tests
run: python3 assets/sourceos/tests/test_sourceos_term_smoke.py
- name: Run TurtleTerm branding guard
run: python3 assets/sourceos/tests/test_turtle_term_branding.py