diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0ad12a1cdecc09cd7a7b678d09e1c9d1e5391d03..4bc8062823ee9543f2fcee3c52794614a22a2bef 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