Add Github workflows

These should do the checks for us.
Not an expert though so it may need a bit of tweaking before they do
what we want them to do.
This commit is contained in:
Jean-Michel Picod
2020-02-24 19:00:51 +01:00
parent 292da30cad
commit feacd72d6e
3 changed files with 124 additions and 0 deletions

27
.github/workflows/pylint.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: pylint
on:
push:
paths:
- '**/*.py'
- '.pylintrc'
- '!third_party/**'
jobs:
pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install tockloader
- name: Test code with pylint
run: |
pip install pylint
pylint --rcfile=.pylintrc