Skip to content

Commit 96d4676

Browse files
fix(ci): run lint only on Python 3.12, not 3.13/3.14
pylama 8.4.1 and its linters (pydocstyle, typed_ast) predate Python 3.13/3.14 and can't parse their AST; typed_ast won't compile on 3.12+ either. Lint is version-independent static analysis, so run it once on the oldest matrix version. Tests continue to run on 3.12/3.13/3.14. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ba4239b commit 96d4676

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/unit-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
run: |
2626
pip install -r Access/access_modules/requirements.txt --no-cache-dir --ignore-installed
2727
- name: Lint code base
28+
# pylama 8.4.1 and its linters (pydocstyle/typed_ast) predate Python 3.13+
29+
# and can't parse their AST. Lint is version-independent, so run it once on
30+
# the oldest matrix version; tests still run on every version.
31+
if: matrix.python-version == '3.12'
2832
run: |
2933
pip install "setuptools<81"
3034
python -m pylama Access/accessrequest_helper.py scripts bootprocess

0 commit comments

Comments
 (0)