Skip to content

ci: drop unsupported Python 3.7/3.8 and mysql 5.7 from test matrix - #6

Merged
tabedzki merged 1 commit into
mainfrom
tabedzki/ci/single-python-version
Aug 17, 2026
Merged

ci: drop unsupported Python 3.7/3.8 and mysql 5.7 from test matrix#6
tabedzki merged 1 commit into
mainfrom
tabedzki/ci/single-python-version

Conversation

@tabedzki

@tabedzki tabedzki commented Aug 17, 2026

Copy link
Copy Markdown

🤖 Human guided, AI assisted PR (using this skill). AI text below. 🤖

Summary

Every CI run on this fork has been failing at the Set up Python 3.7 step:

##[error]The version '3.7' with architecture 'x64' was not found for Ubuntu 24.04.

ubuntu-latest now points at 24.04, which no longer ships/provisions Python 3.7 builds via actions/setup-python. Because this matrix entry fails during setup, GitHub Actions cancels the rest of the matrix (3.8/3.9/3.10), so the whole Test workflow shows red on every push/PR regardless of the actual code changes — including PRs #2/#3/#4 that only touched element_array_ephys/readers/.

Change

Instead of pinning an older runner image just to keep 3.7/3.8 alive, this aligns the matrix with what upstream (datajoint/element-array-ephys) already tests:

  • Python versions: 3.9, 3.10 only (dropped 3.7, 3.8)
  • mysql: 8.0 only (dropped 5.7)
  • Added upstream's black notebooks --check step alongside the existing black element_array_ephys --check

Also fixed the one pre-existing style violation black notebooks/black element_array_ephys actually caught once run locally against both target versions: element_array_ephys/plotting/corr.py had a docstring black wants collapsed to a single line. Without this fix, the matrix would still fail even after removing the dead 3.7/3.8 entries.

Verified locally (black --check for both element_array_ephys and notebooks, target versions py39 and py310) that this now passes cleanly.

Test plan

  • Confirm the Test workflow goes green on this PR

Assisted-by: ClaudeCode:claude-sonnet-5

actions/setup-python can no longer provision Python 3.7 on the
ubuntu-latest (24.04) runner, causing every CI run to fail at the
"Set up Python" step regardless of the actual code changes.

Rather than pin an older runner image to keep 3.7/3.8 alive, align
the matrix with what upstream (datajoint/element-array-ephys)
already tests: Python 3.9 and 3.10 against mysql 8.0 only. Also
picked up upstream's black check on notebooks/, and fixed the one
pre-existing style violation it caught (a docstring black wants
collapsed to a single line) so the check actually passes.

Assisted-by: ClaudeCode:claude-sonnet-5
@tabedzki
tabedzki merged commit 0151231 into main Aug 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant