Skip to content

Commit 4d4622f

Browse files
authored
Merge pull request #1203 from jdegenstein/tytype
Add non-blocking ty type checker (in addition to mypy), use python 3.14 in tests and typing upper version, update actions
2 parents 76ea321 + fb09b8b commit 4d4622f

File tree

8 files changed

+22
-21
lines changed

8 files changed

+22
-21
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ runs:
1111
using: "composite"
1212
steps:
1313
- name: Setup Python
14-
uses: astral-sh/setup-uv@v5
14+
uses: astral-sh/setup-uv@v7
1515
with:
1616
enable-cache: false
1717
python-version: ${{ inputs.python-version }}
18+
activate-environment: true
1819
- name: Install Requirements
1920
shell: bash
2021
run: |

.github/workflows/benchmark.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ jobs:
88
fail-fast: false
99
matrix:
1010
python-version: [
11-
# "3.10",
12-
# "3.11",
1311
"3.12",
1412
]
1513
os: [macos-15-intel, macos-14, ubuntu-latest, windows-latest]
1614

1715
runs-on: ${{ matrix.os }}
1816
steps:
19-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
2018
- uses: ./.github/actions/setup/
2119
with:
2220
python-version: ${{ matrix.python-version }}
@@ -26,7 +24,7 @@ jobs:
2624
python -m pytest --benchmark-only --benchmark-autosave
2725
pytest-benchmark compare --csv="results.csv"
2826
cat results.csv
29-
- uses: actions/upload-artifact@v4
27+
- uses: actions/upload-artifact@v6
3028
with:
3129
name: benchmark-results-${{ matrix.os }}
3230
path: results.csv

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout
8-
uses: actions/checkout@v4
8+
uses: actions/checkout@v6
99
- name: Setup
1010
uses: ./.github/actions/setup/
1111
with:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
python-version: [ "3.10" ]
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v6
1212
- uses: ./.github/actions/setup
1313
with:
1414
python-version: ${{ matrix.python-version }}

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
#if: github.event_name == 'workflow_dispatch'
1212
if: (github.repository == 'gumyr/build123d' && ( startsWith(github.ref, 'refs/tags/v'))) || github.event_name == 'workflow_dispatch'
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515
with:
1616
fetch-depth: 0 # get all history for setuptools_scm
1717

@@ -28,7 +28,7 @@ jobs:
2828
python3 -m pip freeze
2929
ls -lR
3030
31-
- uses: actions/upload-artifact@v4
31+
- uses: actions/upload-artifact@v6
3232
with:
3333
path: ./wheelhouse/build123d*.* # store the build123d wheel and sdist
3434

@@ -45,7 +45,7 @@ jobs:
4545
if: needs.build_wheel.result == 'success'
4646
#if: (github.repository == 'gumyr/build123d' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
4747
steps:
48-
- uses: actions/download-artifact@v4
48+
- uses: actions/download-artifact@v7
4949
with:
5050
# unpacks default artifact into dist/
5151
# if `name: artifact` is omitted, the action will create extra parent dir

.github/workflows/test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ jobs:
99
matrix:
1010
python-version: [
1111
"3.10",
12-
# "3.11",
13-
# "3.12",
14-
"3.13",
12+
"3.14",
1513
]
1614
os: [macos-15-intel, macos-14, ubuntu-latest, windows-latest]
1715

1816
runs-on: ${{ matrix.os }}
1917
steps:
20-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
2119
- uses: ./.github/actions/setup/
2220
with:
2321
python-version: ${{ matrix.python-version }}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run type checker
1+
name: Run type checking
22

33
on: [push, pull_request]
44
jobs:
@@ -8,20 +8,24 @@ jobs:
88
matrix:
99
python-version: [
1010
"3.10",
11-
# "3.11",
12-
# "3.12",
13-
"3.13",
11+
"3.14",
1412
]
1513

1614
runs-on: ubuntu-latest
1715
steps:
18-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1917
- name: Setup
2018
uses: ./.github/actions/setup
2119
with:
2220
python-version: ${{ matrix.python-version }}
2321
optional-dependencies: "development,stubs"
2422

25-
- name: Typecheck
23+
- name: Typecheck (mypy)
2624
run: |
2725
mypy --config-file mypy.ini src/build123d
26+
27+
- name: Typecheck (ty)
28+
run: |
29+
uv tool install ty@latest
30+
ty check src/build123d/
31+
continue-on-error: true

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,5 @@ exclude = ["build123d._dev"]
107107
write_to = "src/build123d/_version.py"
108108

109109
[tool.black]
110-
target-version = ["py310", "py311", "py312", "py313"]
110+
target-version = ["py310", "py311", "py312", "py313", "py314"]
111111
line-length = 88

0 commit comments

Comments
 (0)