mirror of
https://github.com/google/benchmark.git
synced 2025-01-16 14:50:22 +08:00
beb360d03e
* Create pylint.yml * improve file matching * fix some pylint issues * run on PR and push (force on master only) * more pylint fixes * suppress noisy exit code and filter to fatals * add conan as a dep so the module is importable * fix lint error on unreachable branch
27 lines
519 B
YAML
27 lines
519 B
YAML
name: pylint
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
pylint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.8
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pylint pylint-exit conan
|
|
- name: Run pylint
|
|
run: |
|
|
pylint `find . -name '*.py'|xargs` || pylint-exit $?
|