Skip to content

Commit

Permalink
Update Radon analysis workflow to save cyclomatic complexity output t…
Browse files Browse the repository at this point in the history
…o a file and read from it
  • Loading branch information
josephmancuso committed Nov 20, 2024
1 parent 54f561c commit 72e3347
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/radon-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ jobs:
pip install radon
- name: Run Radon Cyclomatic Complexity
run: |
radon cc -s -a src/ > radon_output.txt
- name: Read Radon Output
id: radon
run: |
radon_output=$(radon cc -s -a src/)
echo "$radon_output"
echo "::set-output name=radon_output::$radon_output"
output=$(cat radon_output.txt)
echo "::set-output name=radon_output::$output"
- name: Comment on Pull Request
if: github.event_name == 'pull_request'
Expand Down

0 comments on commit 72e3347

Please sign in to comment.