okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221terminal: strata_cli, strata_control, bin/strata and the terminal tests64a91dcdc

main
1.9 KiB65 linesraw
1name: Minimal serving runtime
2
3on:
4  push:
5    paths:
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
15  pull_request:
16    paths:
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
26  workflow_dispatch:
27
28permissions:
29  contents: read
30
31jobs:
32  fake-engine:
33    name: Linux / runtime requirements only
34    runs-on: ubuntu-latest
35    timeout-minutes: 20
36    steps:
37      - uses: actions/checkout@v7
38        with:
39          persist-credentials: false
40      - uses: actions/setup-python@v7
41        with:
42          python-version: '3.11'
43      - name: Install only pinned runtime requirements
44        shell: bash
45        run: |
46          python -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
49        shell: bash
50        run: |
51          python - <<'PY'
52          import os
53          import subprocess
54          from pathlib import Path
55
56          report = Path(os.environ['RUNNER_TEMP']) / 'minimal-server-smoke.json'
57          python = str(Path(os.environ['RUNNER_TEMP']) / 'strata-runtime-venv' / 'bin' / 'python')
58          subprocess.run([python, 'tools/minimal_server_smoke.py',
59                          '--report', str(report)], check=True)
60          print(report.read_text())
61          PY
62      - name: Run full server suite without terminal packages
63        shell: bash
64        run: |
65          "$RUNNER_TEMP/strata-runtime-venv/bin/python" -m unittest discover -s serve -p 'test_*.py'