-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
77 lines (61 loc) · 2.38 KB
/
Copy pathTaskfile.yml
File metadata and controls
77 lines (61 loc) · 2.38 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
66
67
68
69
70
71
72
73
74
75
76
77
version: '3'
vars:
IMAGE: ghcr.io/karma-git/omnirag
tasks:
# ── Dev ──────────────────────────────────────────────────────────────────────
lint:
desc: "Lint & format check (ruff)"
cmds:
- uv run ruff check .
- uv run ruff format --check .
lint:fix:
desc: "Auto-fix lint & format issues"
cmds:
- uv run ruff check --fix .
- uv run ruff format .
test:
desc: "Unit tests"
cmds:
- uv run pytest tests/ --ignore=tests/smoke -v --tb=short
test:smoke:
desc: "Smoke tests (no external APIs needed)"
cmds:
- uv run pytest tests/smoke/ -v --tb=short
test:all:
desc: "All tests (unit + smoke)"
cmds:
- task: test
- task: test:smoke
# ── Indexer ──────────────────────────────────────────────────────────────────
index:
desc: "Index docs via Docker | task index -- --docs-dir ./my_docs"
cmds:
- docker compose run --rm indexer {{.CLI_ARGS}}
index:ai:
desc: "Index docs with AI proposition extraction | task index:ai -- --docs-dir ./my_docs"
cmds:
- docker compose run --rm indexer --extract-propositions {{.CLI_ARGS}}
index:rebuild:
desc: "Force full re-index (bypass embed cache)"
cmds:
- docker compose run --rm indexer --no-cache {{.CLI_ARGS}}
index:s3:
desc: "Index docs and upload artifacts to S3 | S3_BUCKET=my-bucket task index:s3"
cmds:
- docker compose run --rm -e S3_BUCKET indexer --storage-backend s3 {{.CLI_ARGS}}
# ── Docker ───────────────────────────────────────────────────────────────────
docker:build:
desc: "Build local image"
cmds:
- docker build -t omnirag:local .
docker:push:
desc: "Build & push to GHCR (amd64 + arm64) | task docker:push -- 1.2.3"
vars:
VERSION: '{{.CLI_ARGS}}'
requires:
vars: [VERSION]
cmds:
- docker buildx build --platform linux/amd64,linux/arm64
--push
-t {{.IMAGE}}:{{.VERSION}}
-t {{.IMAGE}}:latest .