Skip to content

Commit b06f783

Browse files
authored
Add PR builder actions file (allankp#121)
* Add PR builder actions file * correct test requirements file name
1 parent 3c98c68 commit b06f783

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/push_builder.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PR Builder
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up Python 3.7
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.7
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install tox
20+
pip install -r requirements/testing.txt
21+
- name: Lint with flake8
22+
run: |
23+
pip install flake8
24+
# stop the build if there are Python syntax errors or undefined names
25+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
26+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
27+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
28+
- name: Test with pytest
29+
run: |
30+
make test

0 commit comments

Comments
 (0)