mirror of
https://github.com/google/benchmark.git
synced 2024-11-29 09:36:49 +00:00
29 lines
517 B
YAML
29 lines
517 B
YAML
name: pylint
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
pylint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- 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 $?
|