sync: update from blackroad-operator 2026-03-14

Synced from BlackRoad-OS-Inc/blackroad-operator/orgs/personal/universal-computer
BlackRoad OS — Pave Tomorrow.

RoadChain-SHA2048: bffc821e1a7aeac9
RoadChain-Identity: alexa@sovereign
RoadChain-Full: bffc821e1a7aeac96e44719f0638a80d936a875547213672cfeb4450b79950dd23dcf26fa83cd628919360efc018e6c73f2781aa7c74790d7161abc541bb1e1a98b37973be3327ab1ac8ca53449dea903653d3ec8ad93f87765f8c9cb46d1f7b4f4ca12bb3fc50fb8946695c028dda018c92ce28711935dbbea4dad40308b53941bbace858ec8b1238751a277fdc393ef4236088d50ff7b05fa96e291ca83e747625cf0284022f16ab99954b1732dca5ffa72bf47e9921ecf629fc93950ec6df4932f66fd1298fec6fa3d9978cecbffe6f231e66192a2b4fd283cd8adeb6ef34d2fc5eb22a4901104169beed0d60e18e8aba17ac5493c4daa1bbc961f2980a80
This commit is contained in:
2026-03-14 15:10:03 -05:00
parent 34ee59e4ce
commit ed3add0f9f
13 changed files with 197 additions and 373 deletions

View File

@@ -1,34 +0,0 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install pytest pytest-cov
- name: Run tests
run: pytest tests/ -v --cov=utm --cov-report=term-missing
- name: Smoke test — run included machines
run: |
python utm.py machines/incrementer.json --tape "1101"
python utm.py machines/even_odd.json --tape "1111"

52
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: Deploy to Cloudflare Pages
on:
push:
branches: [main, master]
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Brand Compliance Check
run: |
echo "🎨 Checking BlackRoad brand compliance..."
if grep -r "#FF9D00\|#FF6B00\|#FF0066\|#FF006B\|#D600AA\|#7700FF\|#0066FF" . \
--include="*.html" --include="*.css" --include="*.js" --include="*.jsx" --include="*.tsx" 2>/dev/null; then
echo "❌ FORBIDDEN COLORS FOUND! Must use official BlackRoad colors:"
echo " ✅ Hot Pink: #FF1D6C"
echo " ✅ Amber: #F5A623"
echo " ✅ Electric Blue: #2979FF"
echo " ✅ Violet: #9C27B0"
exit 1
fi
echo "✅ Brand compliance check passed"
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: |
if [ -f "package.json" ]; then
npm install
fi
- name: Build
run: |
if [ -f "package.json" ] && grep -q '"build"' package.json; then
npm run build
fi
- name: Deploy to Cloudflare Pages
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: |
echo "🚀 Would deploy to Cloudflare Pages here"
echo " (Requires org secrets: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID)"