name: Tests

on: [push]

jobs:
  build:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        python-version: ["2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
        include:
          - os: ubuntu-latest
          - os: ubuntu-18.04
            python-version: 3.4

    steps:
      - uses: actions/checkout@v3
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v3
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install flake8, six
      - name: Run tests
        run: python -m unittest -v
name: Tests

on: [push]

jobs:
  build:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        python-version: ["2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
        include:
          - os: ubuntu-latest
          - os: ubuntu-18.04
            flake: ==3.8
            python-version: 3.4
          - flake: ==3.9
            python-version: 2.7

    steps:
      - uses: actions/checkout@v3
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v3
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install flake8${{ matrix.flake }} six
      - name: Run tests
        run: python -m unittest -v
Install specific version of flake8 on certain Python versions
Install specific version of flake8 on certain Python versions
