Skip to content

Commit caecec2

Browse files
committed
ci: add PR checks for Python lint and catalog consistency
The repo had no push/PR-triggered CI (all workflows are workflow_dispatch). Add a lightweight workflow that runs ruff over scripts/ and apps/ and executes check-catalog.py, so catalog drift and lint regressions are caught on every pull request.
1 parent fcf4158 commit caecec2

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

‎.github/workflows/checks.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Checks
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request: {}
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
python:
14+
name: Lint Python & validate catalog
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
19+
- name: Install tools
20+
run: pip install --quiet pyyaml ruff
21+
- name: Ruff (scripts)
22+
run: ruff check scripts/
23+
- name: Ruff (apps)
24+
run: ruff check apps/
25+
- name: Validate catalog consistency
26+
run: python3 scripts/check-catalog.py

0 commit comments

Comments
 (0)