diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ebc3d86258fb81d65aabe256e964ad80d4e4c577..9d469663d38fee73c3d75e91dd8661479c8939be 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,7 +18,8 @@ jobs:
         -
             uses: actions/setup-python@v1
             with:
-                python-version: '3.x'
+                # matches compat target in setup.py
+                python-version: '3.6'
         -   name: "Main Script"
             run: |
                 curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-flake8.sh