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:
27
.github/workflows/pylint.yml
vendored
Normal file
27
.github/workflows/pylint.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user