okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
64a91dcdc
main
1name : Minimal serving runtime 2 3on : 4push : 5paths : 6- .github/workflows/terminal-minimal-server.yml 7- requirements.txt 8- strata.py 9- strata_cli/** 10- strata_control/** 11- serve/** 12- tests/terminal/test_runtime.py 13- tools/minimal_server_smoke.py 14- tools/strata_tokenizer.py 15pull_request : 16paths : 17- .github/workflows/terminal-minimal-server.yml 18- requirements.txt 19- strata.py 20- strata_cli/** 21- strata_control/** 22- serve/** 23- tests/terminal/test_runtime.py 24- tools/minimal_server_smoke.py 25- tools/strata_tokenizer.py 26workflow_dispatch : 27 28permissions : 29contents : read 30 31jobs : 32fake-engine : 33name : Linux / runtime requirements only 34runs-on : ubuntu-latest 35timeout-minutes : 20 36steps : 37- uses : actions/checkout@v7 38with : 39persist-credentials : false 40- uses : actions/setup-python@v7 41with : 42python-version : '3.11' 43- name : Install only pinned runtime requirements 44shell : bash 45run : | 46python -m venv "$RUNNER_TEMP/strata-runtime-venv" 47"$RUNNER_TEMP/strata-runtime-venv/bin/python" -m pip install -r requirements.txt 48- name : Check fake-engine serving without terminal packages 49shell : bash 50run : | 51python - <<'PY' 52import os 53import subprocess 54from pathlib import Path 55 56report = Path(os.environ['RUNNER_TEMP']) / 'minimal-server-smoke.json' 57python = str(Path(os.environ['RUNNER_TEMP']) / 'strata-runtime-venv' / 'bin' / 'python') 58subprocess.run([python, 'tools/minimal_server_smoke.py', 59'--report', str(report)], check=True) 60print(report.read_text()) 61PY 62- name : Run full server suite without terminal packages 63shell : bash 64run : | 65 "$RUNNER_TEMP/strata-runtime-venv/bin/python" -m unittest discover -s serve -p 'test_*.py'