Skip to content

Remove completed Tasks cutover machinery (#166) #116

Remove completed Tasks cutover machinery (#166)

Remove completed Tasks cutover machinery (#166) #116

name: Validate Planning Docs
on:
push:
branches:
- main
paths:
- ".github/workflows/validate-planning-docs.yml"
- "_docs/**"
- "docs/**"
- "templates/**"
- "content/tasks/templates/**"
- ".goal-v1.md"
- "PROJECT_PLAN.md"
- "PORTAL_ANALYSIS.md"
- "README.md"
- "scripts/validate_planning_docs.py"
- "tools/content_tools/content_tools/doc_registry.py"
- "backend/scripts/validate-docs-links.ts"
- "tests/planningdocs/**"
- "tests/infra/**"
- "infra/template.full.yaml"
- ".github/workflows/deploy-dataops-v1.yml"
- "backend/src/docs/sop/**"
- "backend/scripts/sop.ts"
- "Makefile"
pull_request:
paths:
- ".github/workflows/validate-planning-docs.yml"
- "templates/**"
- "content/tasks/templates/**"
- ".goal-v1.md"
- "PROJECT_PLAN.md"
- "PORTAL_ANALYSIS.md"
- "README.md"
- "scripts/validate_planning_docs.py"
- "tools/content_tools/content_tools/doc_registry.py"
- "backend/scripts/validate-docs-links.ts"
- "tests/planningdocs/**"
- "tests/infra/**"
- "infra/template.full.yaml"
- ".github/workflows/deploy-dataops-v1.yml"
- "backend/src/docs/sop/**"
- "backend/scripts/sop.ts"
- "Makefile"
workflow_dispatch:
permissions:
contents: read
jobs:
validate-planning-docs:
name: Validate planning and process docs
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Check out the knowledge repository
uses: actions/checkout@v6
with:
repository: DataTalksClub/dataops-knowledge
token: ${{ secrets.DATAOPS_CONTENT_GITHUB_TOKEN }}
path: .knowledge
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
- name: Install Python
run: uv python install
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install Node dependencies
run: npm ci
- name: Lint marked SOPs via Node CLI
run: |
files=$(grep -rl "schema_version: 1" .knowledge/content --include='*.md' | xargs grep -l "^doc_type: sop$" | tr '\n' ' ')
if [ -z "$(echo "$files" | tr -d '[:space:]')" ]; then echo 'No marked SOP files found' >&2; exit 1; fi
make sop-lint FILES="$files"
- name: Run planning docs validation
run: uv run --with pytest python -m pytest tests/planning_docs
- name: Set up SAM for transform contract tests
uses: aws-actions/setup-sam@v3
with:
use-installer: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run infra template validation
run: uv run --with pytest python -m pytest tests/infra
- name: Validate docs links and workflow doc IDs
run: npm --prefix backend run validate:docs-links -- --content-root .knowledge/content