name: Build
on: [push]
jobs:
  install-deps:
    runs-on: "ubuntu-latest"
    strategy:
      matrix:
        python-version: ['3.6', '3.7', '3.8', '3.9']
    name: Python ${{ matrix.python-version }} build
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - uses: Gr1N/setup-poetry@v4
    - run: poetry run black --check
    - run: poetry run mypy src
    - run: poetry run pytest

name: Build
on: [push]
jobs:
  install-deps:
    runs-on: "ubuntu-latest"
    strategy:
      matrix:
        python-version: ['3.6', '3.7', '3.8', '3.9']
    name: Python ${{ matrix.python-version }} build
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - uses: Gr1N/setup-poetry@v4
    - run: poetry install
    - run: poetry run black --check
    - run: poetry run mypy src
    - run: poetry run pytest

Install deps before trying to run checks
Install deps before trying to run checks