Browse Source

Resolve "use pylint to check python files"

Eric Tröbs 4 years ago
parent
commit
9f1bef2373
1 changed files with 10 additions and 5 deletions
  1. 10 5
      .gitlab-ci.yml

+ 10 - 5
.gitlab-ci.yml

@@ -37,9 +37,10 @@ tests_3.6:
     - python -V
     - python -m venv env
     - source env/bin/activate
-    - pip install coverage
+    - pip install coverage pylint
   script:
     - coverage run --source=pycs/ -m unittest discover test/
+    - pylint pycs --fail-under=5
 
 tests_3.7:
   stage: test
@@ -57,9 +58,10 @@ tests_3.7:
     - python -V
     - python -m venv env
     - source env/bin/activate
-    - pip install coverage
+    - pip install coverage pylint
   script:
     - coverage run --source=pycs/ -m unittest discover test/
+    - pylint pycs --fail-under=5
 
 tests_3.8:
   stage: test
@@ -77,9 +79,10 @@ tests_3.8:
     - python -V
     - python -m venv env
     - source env/bin/activate
-    - pip install coverage
+    - pip install coverage pylint
   script:
     - coverage run --source=pycs/ -m unittest discover test/
+    - pylint pycs --fail-under=5
 
 tests_3.9:
   stage: test
@@ -95,10 +98,11 @@ tests_3.9:
     - python -V
     - python -m venv env
     - source env/bin/activate
-    - pip install coverage
+    - pip install coverage pylint
   script:
     - coverage run --source=pycs/ -m unittest discover test/
     - coverage report -m
+    - pylint pycs --fail-under=5
 
 tests_3.10:
   stage: test
@@ -117,9 +121,10 @@ tests_3.10:
     - python -V
     - python -m venv env
     - source env/bin/activate
-    - pip install coverage
+    - pip install coverage pylint
   script:
     - coverage run --source=pycs/ -m unittest discover test/
+    - pylint pycs --fail-under=5
 
 
 bundle: