andreped commited on
Commit
b472795
1 Parent(s): dd58623

Added linting workflow

Browse files
Files changed (1) hide show
  1. .github/workflows/linting.yml +28 -0
.github/workflows/linting.yml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Linting
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - '*'
7
+ pull_request:
8
+ branches:
9
+ - '*'
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ubuntu-20.04
15
+ steps:
16
+ - uses: actions/checkout@v1
17
+ - name: Set up Python 3.7
18
+ uses: actions/setup-python@v2
19
+ with:
20
+ python-version: 3.7
21
+
22
+ - name: Install lint dependencies
23
+ run: |
24
+ pip install wheel setuptools
25
+ pip install black==22.3.0 isort==5.10.1 flake8==4.0.1
26
+
27
+ - name: Lint the code
28
+ run: sh shell/lint.sh