name: pylint
on:
  push:
#    paths:
#      - '**/*.py'
#      - '.pylintrc'
#      - '!third_party/**'
  pull_request:
    types: [opened, synchronize, reopened]
jobs:
  pylint:
    runs-on: ubuntu-18.04
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8]
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip setuptools wheel
          pip install tockloader pylint
      - name: Register matcher
        run: echo ::add-matcher::./.github/python_matcher.json
      - name: Test code with pylint
        runs: ./tools/run_pylint.sh

  yapf:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: 3.7
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip setuptools wheel
          pip install yapf tockloader
      - name: Test code formatting with yapf
        run: |
          echo ::add-matcher::./.github/python_matcher.json
          yapf --style=chromium --recursive --exclude third_party --diff .

name: pylint
on:
  push:
#    paths:
#      - '**/*.py'
#      - '.pylintrc'
#      - '!third_party/**'
  pull_request:
    types: [opened, synchronize, reopened]
jobs:
  pylint:
    runs-on: ubuntu-18.04
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8]
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip setuptools wheel
          pip install tockloader pylint
      - name: Register matcher
        run: echo ::add-matcher::./.github/python_matcher.json
      - name: Test code with pylint
        run: ./tools/run_pylint.sh

  yapf:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: 3.7
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip setuptools wheel
          pip install yapf tockloader
      - name: Test code formatting with yapf
        run: |
          echo ::add-matcher::./.github/python_matcher.json
          yapf --style=chromium --recursive --exclude third_party --diff .

Fix typo in YAML workflow
Fix typo in YAML workflow
