andreped commited on
Commit
b8578c0
1 Parent(s): d119e9c

Added linting job [no ci]

Browse files
Files changed (1) hide show
  1. .github/workflows/linting.yml +26 -0
.github/workflows/linting.yml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: pip install wheel setuptools black==22.3.0 isort==5.10.1 flake8==4.0.1
24
+
25
+ - name: Lint the code
26
+ run: sh shell/lint.sh