mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-03 13:55:00 +08:00
ci: replace line budgets with structural complexity gates
This commit is contained in:
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
@@ -109,10 +109,19 @@ jobs:
|
||||
- name: Check governed Python types
|
||||
run: uv run --locked --no-sync mypy --config-file mypy.ini
|
||||
|
||||
- name: Check complexity ratchet
|
||||
run: |
|
||||
- name: Check structural complexity ratchet
|
||||
run: >-
|
||||
uv run --locked --no-sync python scripts/architecture/complexity.py
|
||||
uv run --locked --no-sync python scripts/architecture/complexity.py --v2
|
||||
--report complexity-report.json
|
||||
|
||||
- name: Upload complexity and source size report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: complexity-report
|
||||
path: complexity-report.json
|
||||
if-no-files-found: warn
|
||||
retention-days: 7
|
||||
|
||||
- name: Check native concurrency ownership
|
||||
run: uv run --locked --no-sync python scripts/architecture/concurrency.py
|
||||
|
||||
Reference in New Issue
Block a user