File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 steps :
1010 - uses : actions/checkout@v1
1111 - 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 114114 " moto" ,
115115 " mountpoint" ,
116116 " mssql" ,
117+ " mypy" ,
117118 " nacl" ,
118119 " nargs" ,
119120 " networklb" ,
141142 " pyinstaller" ,
142143 " pylint" ,
143144 " pylintrc" ,
145+ " pytest" ,
144146 " qrcode" ,
145147 " quickstart" ,
146148 " rcfile" ,
193195 " weirdnesses" ,
194196 " whichenv" ,
195197 " winrm" ,
198+ " xargs" ,
196199 " xenial" ,
197200 " xlarge" ,
198201 " xrange" ,
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ pylint = "~= 2.0"
1616# python3 flake8-docstrings fails with pydocstyle 4:
1717# https://github.com/PyCQA/pydocstyle/issues/375
1818pydocstyle = ' <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