Skip to content

shifter: fix non hierarchy joint build #706

shifter: fix non hierarchy joint build

shifter: fix non hierarchy joint build #706

Workflow file for this run

# Workflow to check code quality and complexity
name: Code Quality
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
# runs-on: self-hosted
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install radon
pip install flake8
pip install flake8-polyfill
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Code complexity
run: |
# Runs Radon quality check
radon cc python --total-average --show-complexity
- name: Code quality with flake8
run: |
# Runs code quality check
flake8 python --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics