From f4fa256f34f22ec3637193b38e0319093510ff5a Mon Sep 17 00:00:00 2001 From: Christian Tabedzki <35670232+tabedzki@users.noreply.github.com> Date: Mon, 17 Aug 2026 15:55:13 -0400 Subject: [PATCH] ci: drop unsupported Python 3.7/3.8 and mysql 5.7 from test matrix 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 --- .github/workflows/test.yaml | 8 ++------ element_array_ephys/plotting/corr.py | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e5e6a07a..8f1c1f3b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,12 +11,7 @@ jobs: strategy: matrix: py_ver: ["3.9", "3.10"] - mysql_ver: ["8.0", "5.7"] - include: - - py_ver: "3.8" - mysql_ver: "5.7" - - py_ver: "3.7" - mysql_ver: "5.7" + mysql_ver: ["8.0"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{matrix.py_ver}} @@ -31,4 +26,5 @@ jobs: run: | python_version=${{matrix.py_ver}} black element_array_ephys --check --verbose --target-version py${python_version//.} + black notebooks --check --verbose --target-version py${python_version//.} diff --git a/element_array_ephys/plotting/corr.py b/element_array_ephys/plotting/corr.py index a8daa8cb..d94a0d9f 100644 --- a/element_array_ephys/plotting/corr.py +++ b/element_array_ephys/plotting/corr.py @@ -1,5 +1,4 @@ -"""Code adapted from International Brain Laboratory, T. (2021). ibllib [Computer software]. https://github.com/int-brain-lab/ibllib -""" +"""Code adapted from International Brain Laboratory, T. (2021). ibllib [Computer software]. https://github.com/int-brain-lab/ibllib""" import numpy as np