name: main

on: [push, pull_request]

jobs:
  build:

    runs-on: ${{ matrix.os }}

    strategy:
      fail-fast: false
      matrix:
        tox_env: ["py36", "py37", "py38", "linting", "docs"]
        os: [ubuntu-latest, windows-latest]
        include:
          - tox_env: "py36"
            python: "3.6"
          - tox_env: "py37"
            python: "3.7"
          - tox_env: "py38"
            python: "3.8"
          - tox_env: "linting"
            python: "3.8"
          - tox_env: "docs"
            python: "3.8"
        exclude:
          - tox_env: "linting"
            os: windows-latest
          - tox_env: "docs"
            os: windows-latest



    steps:
    - uses: actions/checkout@v1
    - name: Set up Python
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python }}
    - name: Install tox
      run: |
        python -m pip install --upgrade pip
        pip install tox
    - name: Test
      run: |
        tox -e ${{ matrix.tox_env }}

name: main

on: [push, pull_request]

jobs:
  build:

    runs-on: ${{ matrix.os }}

    strategy:
      fail-fast: false
      matrix:
        tox_env: ["py36", "py37", "py38", "linting", "docs"]
        os: [ubuntu-latest, windows-latest]
        include:
          - tox_env: "py36"
            python: "3.6"
          - tox_env: "py37"
            python: "3.7"
          - tox_env: "py38"
            python: "3.8"
          - tox_env: "linting"
            python: "3.6"
          - tox_env: "docs"
            python: "3.8"
        exclude:
          - tox_env: "linting"
            os: windows-latest
          - tox_env: "docs"
            os: windows-latest



    steps:
    - uses: actions/checkout@v1
    - name: Set up Python
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python }}
    - name: Install tox
      run: |
        python -m pip install --upgrade pip
        pip install tox
    - name: Test
      run: |
        tox -e ${{ matrix.tox_env }}

Use python3.6 for linting environment in CI
Use python3.6 for linting environment in CI

We use pre-commit, and our pre-commit configuration requires Python 3.6.
