mirror of
https://github.com/actions/python-versions.git
synced 2025-12-17 08:16:44 +00:00
Compare commits
1 Commits
3.10.16-12
...
3.10.15-12
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9fdff5d0c |
44
.github/workflows/test-tk.yml
vendored
44
.github/workflows/test-tk.yml
vendored
@@ -1,44 +0,0 @@
|
|||||||
name: Test Python Tk
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- tcl-tk
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
tests-poetry:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [macos-latest-large]
|
|
||||||
# python-version: ["3.8.10", "3.8.17", "3.9.1", "3.9.19", "3.9.19", "3.10.1", "3.10.14", "3.11.9"]
|
|
||||||
python-version: [ "3.10.16"]
|
|
||||||
|
|
||||||
fail-fast: false
|
|
||||||
name: ${{ matrix.python-version }} - ${{ matrix.os }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
# uses: actions/setup-python@v5
|
|
||||||
# uses: priya-kinthali/setup-python@test-930
|
|
||||||
uses: priya-kinthali/setup-python@test-tcl
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
# - name: Print Tcl/Tk version
|
|
||||||
# run: |
|
|
||||||
# tclsh <<< 'puts [info patchlevel]; exit'
|
|
||||||
# wish <<< 'puts [info patchlevel]; exit'
|
|
||||||
- name: Verify Python Tk Version
|
|
||||||
run: |
|
|
||||||
python -c "import tkinter; print(f'Tkinter TkVersion: {tkinter.TkVersion}')"
|
|
||||||
- name: Prepare Ubuntu xvfb
|
|
||||||
if: runner.os == 'Linux'
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y libxkbcommon-x11-0 xvfb
|
|
||||||
- name: Run tk script (closes itself after 5 seconds) - Ubuntu
|
|
||||||
if: runner.os == 'Linux'
|
|
||||||
run: xvfb-run python tk_min.py
|
|
||||||
- name: Run tk script (closes itself after 5 seconds)
|
|
||||||
if: runner.os != 'Linux'
|
|
||||||
run: python tk_min.py
|
|
||||||
@@ -80,9 +80,9 @@ class macOSPythonBuilder : NixPythonBuilder {
|
|||||||
$env:CFLAGS = "-I/usr/local/opt/zlib/include"
|
$env:CFLAGS = "-I/usr/local/opt/zlib/include"
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this.Version -lt "3.10") {
|
# if ($this.Version -gt "3.7.12") {
|
||||||
$configureString += " --with-tcltk-includes='-I /usr/local/opt/tcl-tk/include/tcl-tk' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'"
|
# $configureString += " --with-tcltk-includes='-I /usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'"
|
||||||
}
|
# }
|
||||||
|
|
||||||
if ($this.Version -eq "3.7.17") {
|
if ($this.Version -eq "3.7.17") {
|
||||||
$env:LDFLAGS += " -L$(brew --prefix bzip2)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix ncurses)/lib"
|
$env:LDFLAGS += " -L$(brew --prefix bzip2)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix ncurses)/lib"
|
||||||
|
|||||||
Reference in New Issue
Block a user