Remark from Reviewer 3 #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |