Skip to content

Commit dcf6630

Browse files
committed
tests(tcl/tk): Use tcl/tk 9.0.3 on python 3.14
The python 3.14 tests stopped working with tcl/tk 8.6.14
1 parent 3b385c0 commit dcf6630

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/pytest.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,31 @@ jobs:
5353
- name: Install system dependencies for GUI testing
5454
run: |
5555
sudo apt-get update
56-
sudo apt-get install -y python3-tk scrot xdotool x11-utils gnome-screenshot tcl8.6 tk8.6 libtcl8.6 libtk8.6
56+
if [[ "${{ matrix.python-version }}" == "3.9" ]]; then
57+
# Python 3.9: keep using Tcl/Tk 8.6
58+
sudo apt-get install -y \
59+
python3-tk \
60+
scrot xdotool x11-utils gnome-screenshot \
61+
tcl8.6 tk8.6 libtcl8.6 libtk8.6
62+
else
63+
# Python 3.14 and 3.14t: use Tcl/Tk 9.0
64+
sudo apt-get install -y \
65+
python3-tk \
66+
scrot xdotool x11-utils gnome-screenshot \
67+
tcl9.0 tk9.0 libtcl9.0 libtk9.0
68+
fi
5769
5870
- name: Ensure Tcl/Tk search paths
5971
run: |
60-
echo "TCL_LIBRARY=/usr/share/tcltk/tcl8.6" >> $GITHUB_ENV
61-
echo "TK_LIBRARY=/usr/share/tcltk/tk8.6" >> $GITHUB_ENV
72+
if [[ "${{ matrix.python-version }}" == "3.9" ]]; then
73+
# Python 3.9: Tcl/Tk 8.6 paths
74+
echo "TCL_LIBRARY=/usr/share/tcltk/tcl8.6" >> $GITHUB_ENV
75+
echo "TK_LIBRARY=/usr/share/tcltk/tk8.6" >> $GITHUB_ENV
76+
else
77+
# Python 3.14 and 3.14t: Tcl/Tk 9.0 paths
78+
echo "TCL_LIBRARY=/usr/share/tcltk/tcl9.0" >> $GITHUB_ENV
79+
echo "TK_LIBRARY=/usr/share/tcltk/tk9.0" >> $GITHUB_ENV
80+
fi
6281
6382
- name: Install dependencies and application
6483
# without --editable, the coverage report is not generated correctly

0 commit comments

Comments
 (0)