-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
43 lines (37 loc) · 1.35 KB
/
Copy pathTaskfile.yml
File metadata and controls
43 lines (37 loc) · 1.35 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
# Chapter 9 — Asynchronous I/O.
# Standalone: cd chapter_9_asynchronous_io && task
# From root: task ch9:<name>
# Each script starts its own delay-server on a free port and tears it down on exit.
version: '3'
vars:
ROOT:
sh: cd .. && pwd
PY: '{{.ROOT}}/.venv/bin/python'
tasks:
default:
desc: List Chapter 9 tasks
cmds: [task --list]
silent: true
run:
desc: 'Run a Chapter 9 script: task ch9:run -- ex07_full_async/ex07_full_async.py'
cmds: ['{{.PY}} {{.CLI_ARGS}}']
viz:
desc: Regenerate Chapter 9 charts + dashboard (ex09 reads results.json; no model calls)
cmds:
- '{{.PY}} visualize_exercises.py'
- '{{.PY}} hypothesis/visualize.py'
ocr:
desc: 'Run the REAL OCR pipeline (spends tokens via claude -p): task ch9:ocr -- --pages 6'
cmds: ['{{.PY}} ex09_ocr_pipeline/ex09_ocr_pipeline.py {{.CLI_ARGS}}']
smoke:
desc: Run every Chapter 9 exercise except ex09 (ex09 calls claude -p; run it via `task ocr`)
cmds:
- |
ran=0
for s in ex*/ex*.py; do
[ -f "$s" ] || continue
case "$s" in ex09_ocr_pipeline/*) echo "== skip $s (real claude -p; use task ocr) =="; continue;; esac
echo "== $s =="; {{.PY}} "$s" >/dev/null || { echo "FAILED: $s"; exit 1; }
ran=$((ran+1))
done
echo "ok — $ran scripts passed (ex09 skipped)"