8000 add mypy workflow · robotframework/robotframework@1593a82 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1593a82

Browse files
committed
add mypy workflow
1 parent d5e9e46 commit 1593a82

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/mypy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Unit tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
paths:
9+
- '.github/workflows/**'
10+
- 'src/**'
11+
- 'utest/**'
12+
- '!**/*.rst'
13+
14+
15+
jobs:
16+
test_using_builtin_python:
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ 'ubuntu-latest', 'windows-latest' ]
22+
python-version: [ '3.6', '3.7', '3.8', '3.9', 'pypy3' ]
23+
exclude:
24+
- os: windows-latest
25+
python-version: 'pypy3'
26+
27+
runs-on: ${{ matrix.os }}
28+
29+
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
30+
steps:
31+
- uses: actions/checkout@v2
32+
33+
- name: Setup python ${{ matrix.python-version }}
34+
uses: actions/setup-python@v2.2.2
35+
with:
36+
python-version: ${{ matrix.python-version }}
37+
architecture: 'x64'
38+
39+
- name: Run mypy
40+
run: |
41+
python -m pip install mypy
42+
python -m mypy --install-types --non-interactive src

0 commit comments

Comments
 (0)
0