tests: type-check ordeq resources in one go (#251) #204
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: Docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| workflow_call: | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| name: Build docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Configure Git Credentials | |
| run: | | |
| git config user.name github-actions[bot] | |
| git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --all-packages --all-groups --all-extras | |
| - name: Generate API documentation | |
| run: uv run python scripts/generate_api_docs.py | |
| - name: Generate package overview | |
| run: uv run -m ordeq_dev_tools docs_package_overview . | |
| - name: Build site | |
| run: uv run mkdocs build --strict | |
| - name: Publish site | |
| if: ${{ github.event_name == 'push' }} | |
| run: uv run mkdocs gh-deploy --force |