Skip to content

tkinter minimal

tkinter minimal #69

name: Test Python Package
on:
workflow_dispatch:
jobs:
minimal:
runs-on: macos-13
steps:
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install tcl/tk
run: brew install tcl-tk
- name: Symlink tcl/tk
run: |
version=$(brew info tcl-tk --json | jq -r '.[].installed[].version')
ln -s /usr/local/Cellar/tcl-tk/$version/lib/libtcl8.6.dylib /usr/local/lib/libtcl8.6.dylib
ln -s /usr/local/Cellar/tcl-tk/$version/lib/libtk8.6.dylib /usr/local/lib/libtk8.6.dylib
- name: Install python-tk
run: brew install python-tk@$3.10
- name: import tkinter
run: python -c "import tkinter"