Skip to content

Tools: Moved tools to .tools from .doc_gen and added Python tools rules. #9745

Tools: Moved tools to .tools from .doc_gen and added Python tools rules.

Tools: Moved tools to .tools from .doc_gen and added Python tools rules. #9745

name: Validate Documentation Metadata
on:
pull_request:
# run on demand
workflow_dispatch:
jobs:
validate-doc-metadata:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Python 3.9.x
uses: actions/setup-python@v3
with:
python-version: "3.9.x"
- name: Install dependencies
run: |
python -m pip install yamale
python -m pip install yamllint
- name: Lint with yamllint
run: yamllint --format standard -c .tools/validation/.yamllint.yaml .doc_gen/metadata
- name: Lint with yamllint
run: yamllint --format standard -c .tools/validation/.yamllint.yaml .doc_gen/metadata/curated
- name: Validate metadata with yamale
run: python .tools/validation/validate_doc_metadata.py --doc-gen .doc_gen