File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test Webware for Python 3 package
2+
3+ on : [push]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : ubuntu-latest
9+ strategy :
10+ max-parallel : 4
11+ matrix :
12+ python-version : [3.6, 3.7]
13+
14+ steps :
15+ - uses : actions/checkout@v1
16+ - name : Set up Python ${{ matrix.python-version }}
17+ uses : actions/setup-python@v1
18+ with :
19+ python-version : ${{ matrix.python-version }}
20+ - name : Install dependencies
21+ run : |
22+ python -m pip install --upgrade pip
23+ pip install .
24+ - name : Lint with flake8
25+ run : |
26+ pip install flake8
27+ # stop the build if there are Python syntax errors or undefined names
28+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30+ flake8 webware setup.py --count --exit-zero --max-complexity=10 --max-line-length=79 --statistics
31+ - name : Lint with pylint
32+ run : |
33+ pip install pylint
34+ pylint webware
35+ - name : Test with pytest
36+ run : |
37+ python -m unittest discover -fv
You can’t perform that action at this time.
0 commit comments