Skip to content

Do not config menus on windows (#126) #62

Do not config menus on windows (#126)

Do not config menus on windows (#126) #62

Workflow file for this run

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.7", "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/xvfb-action@v1.4
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