Skip to content

Commit 61a5400

Browse files
committed
add typing-checks workflow
1 parent 59b4668 commit 61a5400

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Typing Checks
2+
3+
on:
4+
push:
5+
# IMPORTANT: update these paths when we expand type-checking coverage
6+
branches: [main]
7+
paths:
8+
- 'jupyter_server_documents/rooms/**'
9+
- '.github/workflows/typing-checks.yml'
10+
pull_request:
11+
branches: [main]
12+
paths:
13+
- 'jupyter_server_documents/rooms/**'
14+
- '.github/workflows/typing-checks.yml'
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
type-check:
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
python-version: ['3.10', '3.11', '3.12', '3.13']
26+
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Base Setup
32+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
33+
with:
34+
python_version: ${{ matrix.python-version }}
35+
36+
- name: Install dependencies
37+
run: |
38+
python -m pip install mypy
39+
python -m pip install -e .[test]
40+
41+
- name: Type-check `rooms` module
42+
run: |
43+
mypy jupyter_server_documents/rooms

0 commit comments

Comments
 (0)