-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 1.36 KB
/
Copy pathci.yml
File metadata and controls
30 lines (28 loc) · 1.36 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
name: CI
on:
push:
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Validate README quality
run: python scripts/validate_readme_quality.py
- name: Validate skill package
run: python scripts/validate_skill.py
- name: Run curation model unit tests
run: python -m unittest discover -s tests
- name: Regenerate committed curator demo
run: python scripts/demo_curate.py --fixture examples/fixtures/sample-skill-index.json --out examples/outputs/demo-curation-report.generated.md
- name: Ensure curator demo output is committed
run: git diff --exit-code examples/outputs/demo-curation-report.generated.md
- name: Run local installer dry-run fixture
run: python scripts/install_skill.py --local-repo examples/fixtures/unsafe-skill --skill-path . --dry-run --json | python -c "import json,sys; d=json.load(sys.stdin); assert d['safety']['level']=='high'; assert d['safety']['findings']"
- name: Regenerate local audit demo
run: python scripts/demo_audit_local.py --out examples/outputs/local-skill-audit.generated.md
- name: Ensure local audit demo is committed
run: git diff --exit-code examples/outputs/local-skill-audit.generated.md