Skip to content

Commit 816faec

Browse files
committed
add github action to lint
1 parent 70efc87 commit 816faec

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/pylint.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: pylint
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
pylint:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Install Python 3.9
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: '3.9'
24+
25+
- name: Install pylint
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install bokeh
29+
pip install pylint
30+
31+
- name: Validate
32+
run: pylint --errors-only . *.py
33+

0 commit comments

Comments
 (0)