Skip to content

Add Radon analysis workflow for cyclomatic complexity checks #10

Add Radon analysis workflow for cyclomatic complexity checks

Add Radon analysis workflow for cyclomatic complexity checks #10

name: Radon Analysis
on:
pull_request:
branches: ["2.0"]
jobs:
comment:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create Radon's reports
run: |
radon cc src/ -j >cc.json
radon mi src/ -j >mi.json
radon hal src/ -j >hal.json
- name: Comment the results on the PR
uses: Libra-foundation/[email protected]
with:
cc: "cc.json"
mi: "mi.json"
hal: "hal.json"