Enhance README with detailed project documentation and structure #41
This file contains hidden or 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: Hygiene | |
| on: | |
| push: | |
| permissions: | |
| contents: read | |
| jobs: | |
| code-hygiene: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: "true" | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pre-commit | |
| - name: Install pre-commit hooks and execute rules | |
| run: pre-commit run --all-files | |
| doc-hygiene: | |
| needs: code-hygiene | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: "true" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| - name: Build documentation | |
| run: make doc/build | |
| - name: Check documentation status | |
| run: git diff --exit-code # exit 1 if there's a difference between what was pushed with what was produced by doc/build. |