Skip to content

Commit f2495e9

Browse files
committed
new: MyPy Github actions
1 parent 6f457b9 commit f2495e9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/mypy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Python application
2+
3+
on:
4+
push:
5+
branches: [ types ]
6+
pull_request:
7+
branches: [ types ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Python ${{matrix.python-version}}
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{matrix.python-version}}
25+
26+
- name: Install package
27+
run: |
28+
pip install mypy cryptography pyopenssl requests
29+
pip install types-setuptools
30+
pip install .[libvalkey]
31+
32+
- name: Run MyPy
33+
run: |
34+
mypy --exclude build .

0 commit comments

Comments
 (0)