-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 1.03 KB
/
Copy pathci.yml
File metadata and controls
35 lines (27 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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: Fail if the README's version claims have drifted
run: python3 .github/check-readme-versions.py
- name: Editable install + typed import smoke test
run: |
pip install -e .
python -c "from busbar_admin.api.default import get_info; from busbar_admin.models import InfoView; import attrs; print('typed InfoView fields:', [f.name for f in attrs.fields(InfoView)])"