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
11 changes: 8 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ jobs:
- name: Install system dependencies for GUI testing
run: |
sudo apt-get update
sudo apt-get install -y python3-tk scrot xdotool x11-utils gnome-screenshot
sudo apt-get install -y python3-tk scrot xdotool x11-utils gnome-screenshot tcl8.6 tk8.6 libtcl8.6 libtk8.6

- name: Ensure Tcl/Tk search paths
run: |
echo "TCL_LIBRARY=/usr/share/tcltk/tcl8.6" >> $GITHUB_ENV
echo "TK_LIBRARY=/usr/share/tcltk/tk8.6" >> $GITHUB_ENV

- name: Install dependencies and application
# without --editable, the coverage report is not generated correctly
Expand Down Expand Up @@ -222,7 +227,7 @@ jobs:
echo "Pytest failed - failing coverage check"
exit 1
fi
coverage report --fail-under=80
coverage report --fail-under=89

Copilot AI Nov 25, 2025

Copy link

Choose a reason for hiding this comment

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

The coverage threshold has been increased from 80% to 89%, which is a significant jump of 9 percentage points. This appears to be an arbitrary change that is not directly related to fixing Python 3.14 Tcl/Tk tests. According to ARCHITECTURE.md, coverage should "increase monotonically", but such a large jump may cause issues if the actual coverage improvement is smaller. Consider verifying that the actual coverage increase justifies this threshold change, or adjust it to match the actual coverage achieved by the test improvements.

Suggested change
coverage report --fail-under=89
coverage report --fail-under=80

Copilot uses AI. Check for mistakes.

publish-test-results:
if: always()
Expand Down Expand Up @@ -313,4 +318,4 @@ jobs:
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
thresholdAll: 0.80
thresholdAll: 0.89

Copilot AI Nov 25, 2025

Copy link

Choose a reason for hiding this comment

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

The coverage threshold in this second location has also been increased from 0.80 to 0.89. This should be consistent with the change on line 230, but the same concern applies: verify that the actual coverage increase justifies this threshold change to avoid breaking the CI pipeline unnecessarily.

Suggested change
thresholdAll: 0.89
thresholdAll: 0.80

Copilot uses AI. Check for mistakes.
Loading