ci(rack): generate rack artifacts, run tests, add nav entry
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b0c933011b
commit
b7fb69cf9a
2 changed files with 11 additions and 1 deletions
|
|
@ -26,14 +26,20 @@ jobs:
|
|||
- name: Install Python dependencies
|
||||
run: pip install --quiet -r requirements.txt
|
||||
|
||||
- name: Install dev dependencies and run tests
|
||||
run: |
|
||||
pip install --quiet -r requirements-dev.txt
|
||||
pytest -q
|
||||
|
||||
- name: Regenerate hardware and services indices
|
||||
run: |
|
||||
python3 scripts/gen_overview.py --category hardware
|
||||
python3 scripts/gen_overview.py --category services
|
||||
python3 scripts/gen_rack.py
|
||||
|
||||
- name: Fail on drift in generated indices
|
||||
run: |
|
||||
if ! git diff --exit-code docs/hardware/index.md docs/services/index.md; then
|
||||
if ! git diff --exit-code docs/hardware/index.md docs/services/index.md docs/infrastructure/racks/; then
|
||||
echo
|
||||
echo "::error::A generated index is stale."
|
||||
echo "Regenerate locally via 'make docs-index' and commit the result."
|
||||
|
|
|
|||
|
|
@ -57,4 +57,8 @@ nav:
|
|||
- hardware/index.md
|
||||
- Services:
|
||||
- services/index.md
|
||||
- Infrastructure:
|
||||
- Lab design: infrastructure/labdesign.md
|
||||
- VPS & DNS: infrastructure/vps-and-dns.md
|
||||
- Rack rack01: infrastructure/racks/rack01.md
|
||||
- House rules: house-rules.md
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue