Explorar o código

Resolve "use pylint to check python files"

Eric Tröbs %!s(int64=4) %!d(string=hai) anos
pai
achega
9f1bef2373
Modificáronse 1 ficheiros con 10 adicións e 5 borrados
  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: