name: Python linters

on:
  push:
  pull_request:

jobs:
  flake8:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: "3.8"
      - name: Install Flake8
        run: |
          pip install flake8
      - name: Run Flake8
        uses: liskin/gh-problem-matcher-wrap@v1
        with:
          linters: flake8
          run: flake8 .

  mypy:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: "3.8"
      - name: Install MyPy
        run: |
          pip install mypy
      - name: Install Delocate dependencies.
        run: |
          pip install pytest
          python setup.py develop
      - name: MyPy
        uses: liskin/gh-problem-matcher-wrap@v1
        with:
          linters: mypy
          run: mypy --show-column-numbers delocate/

name: Python linters

on:
  push:
  pull_request:

jobs:
  flake8:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: "3.8"
      - name: Install Flake8
        run: |
          pip install flake8
      - name: Run Flake8
        uses: liskin/gh-problem-matcher-wrap@v1
        with:
          linters: flake8
          run: flake8 .

  mypy:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: "3.8"
      - name: Install MyPy
        run: |
          pip install mypy
      - name: Install Delocate dependencies.
        run: |
          pip install pytest
          python setup.py develop
      - name: MyPy
        uses: liskin/gh-problem-matcher-wrap@v1
        with:
          linters: mypy
          run: mypy --show-column-numbers delocate/

  black:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - name: Install Black
        run: pip install black
      - name: Run black
        run: black . --check --diff

  isort:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - name: Install isort
        run: pip install isort
      - name: Run isort
        run: isort . --check --diff

Add automated tests for Black and isort.
Add automated tests for Black and isort.
