Skip to content

Simplify git fetch command in Radon analysis workflow to ensure full … #22

Simplify git fetch command in Radon analysis workflow to ensure full …

Simplify git fetch command in Radon analysis workflow to ensure full … #22

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 2.0...HEAD || echo "no_files") -j >cc.json