mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
32 lines
745 B
YAML
32 lines
745 B
YAML
name: Code Smell Detection
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
code-smells:
|
|
runs-on: ubuntu-latest
|
|
name: Code Smell Detection
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install linters
|
|
run: pip install flake8 pylint radon
|
|
|
|
- name: Run Pylint (code smells)
|
|
run: pylint --exit-zero nodupe/ || true
|
|
|
|
- name: Run Flake8 (code style)
|
|
run: flake8 nodupe/ --count --select=E9,F63,F7,F82 --show-source --statistics || true
|
|
|
|
- name: Run Radon (complexity)
|
|
run: radon cc nodupe/ -a --exit-zero || true
|