12 python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12]
15 - uses: actions/checkout@v1
16 - name: Set up Python ${{ matrix.python-version }}
17 uses: actions/setup-python@v1
19 python-version: ${{ matrix.python-version }}
20 - name: Install dependencies
22 python -m pip install --upgrade pip
23 - name: Lint with flake8
26 # stop the build if there are Python syntax errors or undefined names
27 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
28 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
29 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30 - name: Test with pytest