Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test free-threaded builds #2395

Closed
wants to merge 16 commits into from
Closed
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 80 additions & 68 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,20 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: [
# "3.8", "3.9", "3.10", "3.11", "3.12", "3.13",
"3.13t",
]
architecture: ["x64", "x86"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
# Until either the following are available:
# https://github.com/actions/setup-python/issues/771
# https://github.com/astral-sh/uv/issues/7193
uses: Quansight-Labs/setup-python@v5
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
Expand Down Expand Up @@ -74,12 +80,18 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
python-version: [
# "3.8", "3.9", "3.10", "3.11", "3.12", "3.13",
Avasam marked this conversation as resolved.
Show resolved Hide resolved
"3.13t",
]
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
# Until either the following are available:
# https://github.com/actions/setup-python/issues/771
# https://github.com/astral-sh/uv/issues/7193
uses: Quansight-Labs/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: "x64"
Expand All @@ -106,67 +118,67 @@ jobs:
if-no-files-found: error

# This job can be run locally by running `pre-commit run`
checkers:
runs-on: windows-2019
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
# This job only needs to target the oldest supported version
python-version: "3.8"
cache: pip
cache-dependency-path: .github/workflows/main.yml
- run: pip install clang-format pycln
- run: pycln . --config=pycln.toml --check
- uses: astral-sh/ruff-action@v1
with:
version: "0.4.9"
- uses: astral-sh/ruff-action@v1
with:
version: "0.4.9"
args: "format --check"
- run: | # Too many files to fit in a single command, also exclude vendored Scintilla and MAPIStubLibrary
clang-format --Werror --dry-run $(git ls-files '*.cpp')
clang-format --Werror --dry-run $(git ls-files '*.h' ':!:Pythonwin/Scintilla/' ':!:com/win32comext/mapi/src/MAPIStubLibrary/')

mypy:
runs-on: windows-2019
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: .github/workflows/main.yml
check-latest: true
- run: pip install types-setuptools PyOpenGL mypy==1.11
- run: mypy . --python-version=${{ matrix.python-version }}

pyright:
runs-on: windows-2019
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: .github/workflows/main.yml
check-latest: true
# pyright vendors typeshed, but let's make sure we have the most up to date stubs
- run: pip install types-setuptools PyOpenGL
- uses: jakebailey/pyright-action@v2
with:
python-version: ${{ matrix.python-version }}
version: "1.1.358"
annotate: errors
# checkers:
# runs-on: windows-2019
# timeout-minutes: 20
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# # This job only needs to target the oldest supported version
# python-version: "3.8"
# cache: pip
# cache-dependency-path: .github/workflows/main.yml
# - run: pip install clang-format pycln
# - run: pycln . --config=pycln.toml --check
# - uses: astral-sh/ruff-action@v1
# with:
# version: "0.4.9"
# - uses: astral-sh/ruff-action@v1
# with:
# version: "0.4.9"
# args: "format --check"
# - run: | # Too many files to fit in a single command, also exclude vendored Scintilla and MAPIStubLibrary
# clang-format --Werror --dry-run $(git ls-files '*.cpp')
# clang-format --Werror --dry-run $(git ls-files '*.h' ':!:Pythonwin/Scintilla/' ':!:com/win32comext/mapi/src/MAPIStubLibrary/')

# mypy:
# runs-on: windows-2019
# timeout-minutes: 20
# strategy:
# fail-fast: false
# matrix:
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# cache: pip
# cache-dependency-path: .github/workflows/main.yml
# check-latest: true
# - run: pip install types-setuptools PyOpenGL mypy==1.11
# - run: mypy . --python-version=${{ matrix.python-version }}

# pyright:
# runs-on: windows-2019
# timeout-minutes: 20
# strategy:
# fail-fast: false
# matrix:
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# cache: pip
# cache-dependency-path: .github/workflows/main.yml
# check-latest: true
# # pyright vendors typeshed, but let's make sure we have the most up to date stubs
# - run: pip install types-setuptools PyOpenGL
# - uses: jakebailey/pyright-action@v2
# with:
# python-version: ${{ matrix.python-version }}
# version: "1.1.358"
# annotate: errors
Loading