name: Run tests

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6]

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

      - name: Install deps
        run: |
         python -m pip install --upgrade pip
         pip install pyyaml pycodestyle python-magic black

      - name: Linting
        run: |
         black --check .
         ./sanity-check.sh
