Some checks failed
Architecture Lint / Linter Tests (push) Has been cancelled
Architecture Lint / Lint Repository (push) Has been cancelled
Validate Config / Deploy Script Dry Run (push) Has been cancelled
Validate Config / YAML Lint (push) Has been cancelled
Validate Config / JSON Validate (push) Has been cancelled
Validate Config / Python Syntax & Import Check (push) Has been cancelled
Validate Config / Shell Script Lint (push) Has been cancelled
Validate Config / Cron Syntax Check (push) Has been cancelled
Validate Config / Playbook Schema Validation (push) Has been cancelled
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
# architecture-lint.yml — CI gate for the Architecture Linter v2
|
|
# Refs: #437 — repo-aware, test-backed, CI-enforced.
|
|
#
|
|
# Runs on every PR to main. Validates Python syntax, then runs
|
|
# linter tests and finally lints the repo itself.
|
|
|
|
name: Architecture Lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main, master]
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
linter-tests:
|
|
name: Linter Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Install test deps
|
|
run: pip install pytest
|
|
- name: Compile-check linter
|
|
run: python3 -m py_compile scripts/architecture_linter_v2.py
|
|
- name: Run linter tests
|
|
run: python3 -m pytest tests/test_linter.py -v
|
|
|
|
lint-repo:
|
|
name: Lint Repository
|
|
runs-on: ubuntu-latest
|
|
needs: linter-tests
|
|
continue-on-error: true
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Run architecture linter
|
|
run: python3 scripts/architecture_linter_v2.py .
|