Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install setuptools for pkg_resources for Python 3.12+, #2569
if: ${{ matrix.python-version >= '3.12' }}

Copilot AI Feb 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition uses string comparison (>=) on matrix.python-version, which is a string value. In GitHub Actions expressions, comparing strings like '3.9' >= '3.12' performs lexicographic comparison, not numeric version comparison. This will incorrectly match Python 3.9 (since '3.9' > '3.12' lexicographically).

Consider using one of these approaches:

  1. Use a list check: if: contains(fromJSON('["3.12", "3.13"]'), matrix.python-version)
  2. Use string equality checks: if: matrix.python-version == '3.12' || matrix.python-version == '3.13'
Suggested change
if: ${{ matrix.python-version >= '3.12' }}
if: ${{ contains(fromJSON('["3.12", "3.13"]'), matrix.python-version) }}

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

follow-up: #2696

run: pip install 'setuptools<82'

- name: Install dependencies for full run
if: ${{ matrix.type == 'full' }}
env:
Expand Down