OxbridgeEconomics commited on
Commit
e4a0e59
·
unverified ·
1 Parent(s): 5d6ea94

Create pylint.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/pylint.yml +25 -0
.github/workflows/pylint.yml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Pylint
2
+
3
+ on: # or directly `on: [push]` to run the action on every push on any branch
4
+ pull_request:
5
+ branches: [dev, main]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ matrix:
12
+ python-version: ["3.8", "3.9", "3.10"]
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - name: Set up Python ${{ matrix.python-version }}
16
+ uses: actions/setup-python@v3
17
+ with:
18
+ python-version: ${{ matrix.python-version }}
19
+ - name: Install dependencies
20
+ run: |
21
+ python -m pip install --upgrade pip
22
+ pip install pylint
23
+ - name: Analysing the code with pylint
24
+ run: |
25
+ pylint $(git ls-files '*.py')