-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 902 Bytes
/
Copy pathpython-app.yml
File metadata and controls
34 lines (29 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Python application
on:
push:
branches: [ main, python-api-dev ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install dependencies
shell: bash -l {0}
run: |
pip install flake8
pip install pytest
pip install impl/python/
- name: Lint with flake8
shell: bash -l {0}
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 ./impl/python/ --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 ./impl/python/ --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Test with pytest
shell: bash -l {0}
run: |
pytest --pyargs RIF