Terralego/django-terra-geocrud

View on GitHub
.github/workflows/python-lint.yml

Summary

Maintainability
Test Coverage
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Linting

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  lint:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: 3.6

    - name: Install flake8
      run: |
        python -m pip install flake8 -U

    - name: Lint with flake8
      run: |
        flake8 terra_geocrud test_terra_geocrud