Repository navigation
Expand file tree
/
Copy pathTaskfile.yml
More file actions
68 lines (56 loc) · 3.67 KB
/
Copy pathTaskfile.yml
File metadata and controls
68 lines (56 loc) · 3.67 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
version: '3'
tasks:
default:
desc: Run all CI checks
cmds:
- task: ci
ci:
desc: Run the same validation checks as CI and release workflows
cmds:
- bash scripts/ci.sh
validate:
desc: Validate skill structure, frontmatter, sections, and manifests
cmds:
- docker run --rm -v "{{.ROOT_DIR}}:/work" -w /work python@sha256:739e7213785e88c0f702dcdc12c0973afcbd606dbf021a589cab77d6b00b579d sh -c "apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends git=1:2.47.3-0+deb13u1 >/dev/null && pip install -q --require-hashes -r scripts/requirements.txt && python3 -m unittest discover -s scripts -p 'test_*.py' && python3 scripts/validate.py"
eval:
desc: Run eval checks against skill asset files
cmds:
- docker run --rm -v "{{.ROOT_DIR}}:/work" -w /work python@sha256:739e7213785e88c0f702dcdc12c0973afcbd606dbf021a589cab77d6b00b579d sh -c "pip install -q --require-hashes -r scripts/requirements.txt && python3 scripts/eval_check.py"
eval:skills:
desc: Run live skill scenarios with Claude Code and real sbx (calls a live model; needs claude, sbx authenticated, and ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN; separate from offline CI)
cmds:
- python3 -m venv .venv
- .venv/bin/pip install -q --require-hashes -r scripts/requirements.txt
- .venv/bin/python scripts/skill_eval.py {{.CLI_ARGS}}
catalog:
desc: Regenerate catalog tables, skills.sh.json, and rendered plugin manifest versions from catalog.yaml
cmds:
- docker run --rm -v "{{.ROOT_DIR}}:/work" -w /work python@sha256:739e7213785e88c0f702dcdc12c0973afcbd606dbf021a589cab77d6b00b579d sh -c "pip install -q --require-hashes -r scripts/requirements.txt && python3 scripts/render_catalog.py"
catalog:check:
desc: Fail when generated catalog files or rendered manifest versions differ from catalog.yaml
cmds:
- docker run --rm -v "{{.ROOT_DIR}}:/work" -w /work python@sha256:739e7213785e88c0f702dcdc12c0973afcbd606dbf021a589cab77d6b00b579d sh -c "pip install -q --require-hashes -r scripts/requirements.txt && python3 scripts/render_catalog.py --check"
release:prepare:
desc: Prepare the catalog, generated files, and changelog for a distribution release
requires:
vars: [VERSION]
env:
RELEASE_VERSION: '{{.VERSION}}'
cmds:
- docker run --rm -e RELEASE_VERSION -v "{{.ROOT_DIR}}:/work" -w /work python@sha256:739e7213785e88c0f702dcdc12c0973afcbd606dbf021a589cab77d6b00b579d sh -c 'pip install -q --require-hashes -r scripts/requirements.txt && python3 scripts/prepare_release.py "$RELEASE_VERSION"'
links:
desc: Check local Markdown links and heading anchors
cmds:
- docker run --rm -v "{{.ROOT_DIR}}:/work" -w /work python@sha256:739e7213785e88c0f702dcdc12c0973afcbd606dbf021a589cab77d6b00b579d python3 scripts/check_links.py
links:external:
desc: Check public HTTPS links (live network; separate from offline CI)
cmds:
- docker run --rm -v "{{.ROOT_DIR}}:/work:ro" -w /work python@sha256:739e7213785e88c0f702dcdc12c0973afcbd606dbf021a589cab77d6b00b579d python3 scripts/check_external_links.py
images:inventory:
desc: Inventory actionable container image references offline
cmds:
- docker run --rm -v "{{.ROOT_DIR}}:/work:ro" -w /work python@sha256:739e7213785e88c0f702dcdc12c0973afcbd606dbf021a589cab77d6b00b579d python3 scripts/image_inventory.py
images:check:
desc: Check public image tags and amd64/arm64 availability (live network; separate from offline CI)
cmds:
- docker run --rm -v "{{.ROOT_DIR}}:/work:ro" -w /work python@sha256:739e7213785e88c0f702dcdc12c0973afcbd606dbf021a589cab77d6b00b579d python3 scripts/check_images.py