File tree Expand file tree Collapse file tree 5 files changed +118
-1
lines changed Expand file tree Collapse file tree 5 files changed +118
-1
lines changed Original file line number Diff line number Diff line change 9
9
steps :
10
10
- uses : actions/checkout@v1
11
11
- uses : max/secret-scan@master
12
+ python :
13
+ name : Python tests
14
+ runs-on : ubuntu-latest
15
+ strategy :
16
+ max-parallel : 4
17
+ matrix :
18
+ python-version : [3.6, 3.7]
19
+ steps :
20
+ - uses : actions/checkout@v1
21
+ - name : Set up Python ${{ matrix.python-version }}
22
+ uses : actions/setup-python@v1
23
+ with :
24
+ python-version : ${{ matrix.python-version }}
25
+ - name : Install dependencies
26
+ run : |
27
+ python -m pip install --upgrade pip
28
+ pip install pipenv
29
+ pipenv sync --dev
30
+ - name : Lint with mypy
31
+ run : |
32
+ find ${GITHUB_WORKSPACE} -name '*.py' ! -name '*_types.py' -exec pipenv run mypy {} +
33
+ - name : Lint with flake8
34
+ run : |
35
+ pipenv run flake8 --exclude=tests ${GITHUB_WORKSPACE} --count --show-source --statistics
36
+ - name : Lint with pylint
37
+ run : |
38
+ find ${GITHUB_WORKSPACE} -name '*.py' | xargs pipenv run pylint --rcfile=.pylintrc
39
+ - name : Test with pytest
40
+ run : pipenv run pytest
Original file line number Diff line number Diff line change 114
114
" moto" ,
115
115
" mountpoint" ,
116
116
" mssql" ,
117
+ " mypy" ,
117
118
" nacl" ,
118
119
" nargs" ,
119
120
" networklb" ,
141
142
" pyinstaller" ,
142
143
" pylint" ,
143
144
" pylintrc" ,
145
+ " pytest" ,
144
146
" qrcode" ,
145
147
" quickstart" ,
146
148
" rcfile" ,
193
195
" weirdnesses" ,
194
196
" whichenv" ,
195
197
" winrm" ,
198
+ " xargs" ,
196
199
" xenial" ,
197
200
" xlarge" ,
198
201
" xrange" ,
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ pylint = "~= 2.0"
16
16
# python3 flake8-docstrings fails with pydocstyle 4:
17
17
# https://github.com/PyCQA/pydocstyle/issues/375
18
18
pydocstyle = ' <4.0.0'
19
+ pytest = ' ~= 5.1'
Original file line number Diff line number Diff line change
1
+ """A placeholder for tests."""
2
+
3
+
4
+ def test_placeholder () -> None :
5
+ """Placeholder for tests."""
You can’t perform that action at this time.
0 commit comments