瀏覽代碼

Merge branch '50-use-pylint-to-check-python-files' into 'master'

Resolve "use pylint to check python files"

Closes #50

See merge request troebs/pycs!42
Eric Tröbs 4 年之前
父節點
當前提交
ce80b9b0b1
共有 1 個文件被更改,包括 10 次插入5 次删除
  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: