diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index a9da50c..a7262a6 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -17,10 +17,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + # Run autopep8 on the oldest Python the plugin supports. On Python 3.12+ + # autopep8 splits long f-strings across lines, which is a SyntaxError on + # receivers running Python 3.11 or older. - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.13" + python-version: "3.10" - name: Install linters run: | @@ -35,6 +38,10 @@ jobs: run: | autopep8 . --in-place --recursive --aggressive --aggressive + - name: Check the fixed code still compiles + run: | + python -m compileall -q . + - name: Configure Git identity run: | git config --global user.email "actions@github.com"