-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (66 loc) · 2.04 KB
/
validate.yml
File metadata and controls
72 lines (66 loc) · 2.04 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
name: Validate Documents
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Validate docx files
run: |
echo "=== HUF Document Inventory ==="
count=0
for docx in $(find science huf-gov -name '*.docx' -type f 2>/dev/null | sort); do
size=$(stat --format=%s "$docx")
kb=$((size / 1024))
echo " OK: $docx (${kb} KB)"
count=$((count + 1))
done
echo ""
echo "Total: $count documents found"
if [ $count -eq 0 ]; then
echo "WARNING: No .docx files found in science/ or huf-gov/"
exit 1
fi
echo "All documents present."
- name: Verify core science documents
run: |
echo "=== Core Science Check ==="
missing=0
for doc in \
"science/chemistry/EITT_Chemistry_Findings.docx" \
"science/chemistry/HUF_Development_Index.docx" \
"science/chemistry/PRISM_Chemistry_Analysis.docx"; do
if [ -f "$doc" ]; then
echo " OK: $doc"
else
echo " MISSING: $doc"
missing=$((missing + 1))
fi
done
if [ $missing -gt 0 ]; then
echo "ERROR: $missing core document(s) missing"
exit 1
fi
echo "All core science documents present."
- name: Verify tools
run: |
echo "=== Tools Check ==="
for tool in \
"tools/pipeline/chem_eitt_pipeline.py" \
"tools/pipeline/huf_preparser.py" \
"tools/diagnostics/validate.py"; do
if [ -f "$tool" ]; then
echo " OK: $tool"
else
echo " MISSING: $tool"
fi
done
echo "Tools check complete."