ci: also run on dev (push + PR) #3
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: CI | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install generator (pinned) | |
| run: pip install -r requirements-dev.txt | |
| - name: Regenerate client from openapi.json | |
| run: make generate | |
| - name: Fail if the committed client is stale | |
| run: | | |
| git diff --exit-code -- busbar_admin setup.py \ | |
| || (echo "::error::Generated client is out of date. Run 'make generate' and commit." && exit 1) | |
| - name: Editable install + typed import smoke test | |
| run: | | |
| pip install -e . | |
| python -c "from busbar_admin.api.default import get_api_v1_admin_info; from busbar_admin.models import InfoView; import attrs; print('typed InfoView fields:', [f.name for f in attrs.fields(InfoView)])" |