Fix Toolbutton lag in complex layouts #119
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: pip | |
- run: python3 -m pip install mypy | |
- run: mypy sv_ttk/__init__.py | |
pytest: | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest"] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12.0-beta.3"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
- run: | | |
python3 -m pip install pytest | |
- uses: GabrielBB/[email protected] | |
with: | |
run: python3 -m pytest | |
# Separate from other pytests because tkinter doesn't work on macos with actions/setup-python. | |
# It imports, but gives this error: RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5) | |
pytest-macos: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
env: | |
TCLLIBPATH: ./lib | |
PYTHON: /usr/local/opt/python@${{ matrix.python-version }}/libexec/bin/python | |
steps: | |
- uses: actions/checkout@v3 | |
- run: brew install python@${{ matrix.python-version }} | |
- if: matrix.python-version != '3.8' | |
run: brew install python-tk@${{ matrix.python-version }} | |
- run: $PYTHON --version | |
- run: | | |
python3 -m pip install . | |
python3 -m pip install pytest | |
python3 -m pytest |