| 1 |
name: Run linters |
| 2 |
on: [push, pull_request] |
| 3 |
|
| 4 |
jobs: |
| 5 |
test: |
| 6 |
|
| 7 |
runs-on: ubuntu-latest |
| 8 |
|
| 9 |
|
| 10 |
steps: |
| 11 |
|
| 12 |
- uses: actions/checkout@v2 |
| 13 |
- name: Set up Python 3.x |
| 14 |
uses: actions/setup-python@v2 |
| 15 |
with: |
| 16 |
python-version: 3.x |
| 17 |
- name: Install dependencies |
| 18 |
run: | |
| 19 |
python -m pip install --upgrade pip |
| 20 |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi |
| 21 |
if [ -f requirements_test.txt ]; then pip install -r requirements_test.txt; fi |
| 22 |
- name: Run pylint |
| 23 |
run: pylint rachiopy tests |
| 24 |
- name: Run flake8 |
| 25 |
run: flake8 |
| 26 |
- name: Run pydocstyle |
| 27 |
run: pydocstyle {posargs:rachiopy tests} |