File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Pylint
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ paths :
7+ - ' **.py'
8+ - ' .github/workflows/pylint.yml'
9+ pull_request :
10+ branches : [ main ]
11+ paths :
12+ - ' **.py'
13+ - ' .github/workflows/pylint.yml'
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ strategy :
19+ matrix :
20+ python-version : ["3.10", "3.11"]
21+
22+ steps :
23+ - uses : actions/checkout@v4
24+
25+ - name : Set up Python ${{ matrix.python-version }}
26+ uses : actions/setup-python@v5
27+ with :
28+ python-version : ${{ matrix.python-version }}
29+
30+ - name : Install dependencies
31+ run : |
32+ python -m pip install --upgrade pip
33+ pip install pylint
34+ # Install common dependencies used by the scripts
35+ pip install pandas numpy scikit-learn biopython pysam
36+
37+ - name : Analysing the code with pylint
38+ run : |
39+ pylint $(find bin -name "*.py" -type f) \
40+ --disable=C0114,C0115,C0116 \
41+ --disable=R0913,R0914,R0915 \
42+ --disable=W0612,W0613 \
43+ --max-line-length=120 \
44+ --exit-zero
You can’t perform that action at this time.
0 commit comments