Python: Resilient service workflow followup #9359
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .doc_gen/validation/.yamllint.yaml .doc_gen/metadata/. | |
- name: Lint with yamllint | |
run: yamllint --format standard -c .doc_gen/validation/.yamllint.yaml .doc_gen/metadata/curated/. | |
- name: Validate metadata with yamale | |
run: python .doc_gen/validation/validate_doc_metadata.py .doc_gen |