Skip to content

Commit 3a24ca7

Browse files
committed
Add lint test workflow
1 parent f6276a5 commit 3a24ca7

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/lint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- "*"
10+
workflow_dispatch:
11+
inputs: {}
12+
13+
jobs:
14+
lint:
15+
strategy:
16+
matrix:
17+
# A separate run on Windows is needed
18+
# because typing of stdlib might be different.
19+
os: [ubuntu-latest, windows-latest]
20+
runs-on: ${{ matrix.os }}
21+
permissions: {} # None needed
22+
steps:
23+
- uses: actions/checkout@v5
24+
with:
25+
persist-credentials: false
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.11"
29+
- uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # v3.5.1
30+
with:
31+
version: "0.12.11"
32+
- uses: python/mypy@7e7d7a7a3e09350f7e2beff0cde10d997539ef6e
33+
with:
34+
version: "1.17.1"

0 commit comments

Comments
 (0)