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