Skip to content

Commit be26cc5

Browse files
authored
Added github actions
1 parent 0c09f36 commit be26cc5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pythonapp.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)