Skip to content

Commit 99949e1

Browse files
committed
Add mypy testing
1 parent 2a6f3ee commit 99949e1

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/continuous-deployment.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,34 @@ jobs:
2222
with:
2323
args: 'format --check --verbose'
2424

25+
mypy-python:
26+
name: Check Python static typing
27+
runs-on: ubuntu-latest
28+
steps:
29+
- id: checkout
30+
name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- id: install-uv
34+
name: Install uv
35+
uses: astral-sh/setup-uv@v6
36+
with:
37+
version: "latest"
38+
enable-cache: true
39+
cache-dependency-glob: '**/pyproject.toml'
40+
41+
- id: install-python
42+
name: Install Python
43+
run: uv python install 3.13
44+
45+
- id: install-python-dependencies
46+
name: Install Python dependencies
47+
run: uv sync --extra mypy
48+
49+
- id: mypy
50+
name: Run mypy
51+
run: uv run mypy ./ --ignore-missing-imports
52+
2553
test-python:
2654
name: "Test Python"
2755
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ dev = [
6262
"pytest",
6363
"pytest-django",
6464
]
65-
65+
mypy = [
66+
"mypy",
67+
]
6668
docs = [
6769
"sphinx",
6870
"sphinx-autobuild",

0 commit comments

Comments
 (0)