Repository navigation
feat(batch): verify webhook signatures and match the API's result shapes #119
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: CI | |
| on: | |
| # The release workflow starts CI on release PRs, which start no workflows themselves. | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: | |
| - main | |
| - feature/batch-api/rc | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| name: "Lint, typecheck, and test" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Fetch source code" | |
| uses: actions/checkout@v4 | |
| - name: "Install uv" | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| - name: "Install dependencies" | |
| run: uv sync --all-extras | |
| - name: "Lint, format check, and typecheck" | |
| run: make check | |
| - name: "Generated models match the spec" | |
| # Offline: codegen reads docs/openapi.yaml. Ignores the timestamp header. | |
| run: | | |
| make generate | |
| git diff --exit-code -I '^# timestamp:' -- src/zenrows/batch/models.py | |
| - name: "Unit tests" | |
| run: make test |