tkinter minimal #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |