DM-33034: tools for building Sphinx docs from Pipelines #633
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: Run docstyle | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
call-workflow: | |
uses: lsst/rubin_workflows/.github/workflows/docstyle.yaml@main | |
with: | |
args: "python/" | |
numpydoc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
- name: Install numpydoc | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install numpydoc | |
- name: Validate docstrings | |
run: python -m numpydoc.hooks.validate_docstrings $(find python -name "*.py") |