Skip to content

Update Radon analysis workflow to use the correct base branch for cha… #24

Update Radon analysis workflow to use the correct base branch for cha…

Update Radon analysis workflow to use the correct base branch for cha… #24

name: Radon Analysis
on: [push, pull_request]
jobs:
radon-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all branches and tags
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Radon
run: pip install radon
- name: Run Radon Analysis
run: |
git fetch # Ensure full history is available
radon cc $(git diff --name-only master...HEAD || echo "no_files") -j >cc.json