Skip to content

Commit dcecc31

Browse files
committed
Update lint and test workflows, add Python 3.14 support and permissions; update dependencies in pyproject.toml
1 parent d1ed0e9 commit dcecc31

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Lint
2+
permissions:
3+
contents: read
24

35
on:
46
push:
@@ -22,12 +24,12 @@ jobs:
2224
- name: Set up Python
2325
uses: actions/setup-python@v6
2426
with:
25-
python-version: "3.12"
27+
python-version: "3.14"
2628

2729
- name: Install dependencies
2830
run: |
2931
uv sync
30-
uv pip install ruff mypy pytest
32+
uv add ruff mypy pytest
3133
3234
- name: Run ruff check
3335
run: uv run ruff check src/ tests/

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Tests
2+
permissions:
3+
contents: read
24

35
on:
46
push:
@@ -10,9 +12,12 @@ jobs:
1012
test:
1113
name: Test Python ${{ matrix.python-version }}
1214
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
pull-requests: write
1318
strategy:
1419
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
20+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
1621

1722
steps:
1823
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ authors = [
88
]
99
requires-python = ">=3.8"
1010
dependencies = [
11+
"mypy>=1.14.1",
12+
"pytest>=8.3.5",
13+
"ruff>=0.14.4",
1114
"typing-extensions>=4.0.0; python_version < '3.10'",
1215
]
1316
license = { text = "MIT" }

0 commit comments

Comments
 (0)