Skip to content

Commit

Permalink
Enhance Radon analysis workflow to capture and output cyclomatic comp…
Browse files Browse the repository at this point in the history
…lexity results
  • Loading branch information
josephmancuso committed Nov 20, 2024
1 parent 93c7a38 commit 54f561c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/radon-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ jobs:
pip install radon
- name: Run Radon Cyclomatic Complexity
run: radon cc -s -a src/
id: radon
run: |
radon_output=$(radon cc -s -a src/)
echo "$radon_output"
echo "::set-output name=radon_output::$radon_output"
- name: Comment on Pull Request
if: github.event_name == 'pull_request'
Expand All @@ -35,5 +39,5 @@ jobs:
header: Radon Cyclomatic Complexity Report
message: |
```console
$(radon cc -s -a src/)
${{ steps.radon.outputs.radon_output }}
```

0 comments on commit 54f561c

Please sign in to comment.