File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name: Python 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: [2.7, 3.5, 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 -r requirements.txt
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 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+ - name: Test with pytest
32+ run: |
33+ pip install pytest
34+ pytest
You can’t perform that action at this time.
0 commit comments