name: Build

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        include:
          - python-version: 3.6
            tox-env: py36-core
          - python-version: 3.7
            tox-env: py37-core
          - python-version: 3.8
            tox-env: py38-core
          - python-version: 3.9
            tox-env: py39-core

    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Cache pip
        uses: actions/cache@v2
        with:
          # This path is specific to Ubuntu
          path: ~/.cache/pip
          # Look to see if there is a cache hit for the corresponding requirements files
          key: ${{ format('{0}-pip-{1}', runner.os, hashFiles('dev-requirements.txt', format('requirements{0}.txt', matrix.spark-version-suffix))) }}
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip 'tox<3.0'
      - name: Build
        run: |
          tox -e ${{ matrix.tox-env }}

Add GH actions for py{36,37,38,39}-core
Add GH actions for py{36,37,38,39}-core
