feat(Testing): add support for Contract-based Tests #11118
Workflow file for this run
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] | |
| release: | |
| types: [released] | |
| pull_request: | |
| types: [opened, synchronize] | |
| concurrency: | |
| # Cancel older, in-progress jobs from the same PR, same workflow. | |
| # use run_id if the job is triggered by a push to ensure | |
| # push-triggered jobs to not get canceled. | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Python | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.10" | |
| - name: Build Docs | |
| run: uv sync | |
| - name: Add venv to PATH | |
| run: echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH | |
| # NOTE: Otherwise the next action nukes the path when it starts | |
| - name: Ape Docs | |
| uses: apeworx/sphinx-ape@main | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |