-
Notifications
You must be signed in to change notification settings - Fork 110
68 lines (57 loc) · 1.93 KB
/
Copy pathpacks.yml
File metadata and controls
68 lines (57 loc) · 1.93 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
name: packs
on:
push:
paths:
- "packs/**"
- "scripts/gen-pack-installers.mjs"
- "scripts/validate-manifests.mjs"
- "scripts/test-packs.sh"
- "scripts/check-model-urls.mjs"
- "scripts/check-pack-models.mjs"
- "src/services/manifest.ts"
- ".github/workflows/packs.yml"
pull_request:
paths:
- "packs/**"
- "scripts/gen-pack-installers.mjs"
- "scripts/validate-manifests.mjs"
- "scripts/test-packs.sh"
- "scripts/check-model-urls.mjs"
- "scripts/check-pack-models.mjs"
- "src/services/manifest.ts"
- ".github/workflows/packs.yml"
jobs:
packs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: "22"
cache: "npm"
- run: npm ci
- name: Build (for schema validation)
run: npm run build
- name: Validate manifests against manifestSchema
run: npm run packs:validate
- name: Installers are up to date with manifests
run: |
npm run packs:gen
if ! git diff --quiet -- packs; then
echo "::error::Generated installers are stale. Run 'npm run packs:gen' and commit the result."
git --no-pager diff -- packs
exit 1
fi
- name: shellcheck (Linux installers + fixes)
run: |
sudo apt-get update -qq && sudo apt-get install -y shellcheck
shellcheck -S error \
scripts/test-packs.sh \
packs/*/install-runpod.sh \
packs/ltx-2.3/fix-ltxvideo-kornia.sh
- name: Dry-run install scripts (offline, git/curl stubbed)
run: bash scripts/test-packs.sh
- name: Workflows only reference models their manifest downloads
run: npm run packs:check-models
- name: Validate model URLs + payload sizes (network, no full downloads)
run: node scripts/check-model-urls.mjs