name: tests

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]

    steps:
      - uses: actions/checkout@v3
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v3
        with:
          python-version: ${{ matrix.python-version }}
      - name: Download bad future syntaxes
        run:  |
              for i in 3 4 5 6 7 8 9 10
              do
                wget https://raw.githubusercontent.com/python/cpython/main/Lib/test/badsyntax_future$i.py -O badsyntax_future$i.py
              done
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install flake8
      - name: Run tests
        run: python setup.py test
Add github action to run tests
Add github action to run tests

Install flake8 before running tests and only run on supported versions
of it.
