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