Bladeren bron

[ci] Add pylint check for py3.8 CI (#3190)

- For both CircleCI and Github Actions
Harsh Gupta 2 jaren geleden
bovenliggende
commit
82061a7e66
2 gewijzigde bestanden met toevoegingen van 14 en 0 verwijderingen
  1. 6 0
      .circleci/config.yml
  2. 8 0
      .github/workflows/commitflow-py3.yml

+ 6 - 0
.circleci/config.yml

@@ -226,6 +226,12 @@ commands:
             export ROOT=$PWD
             make apps
 
+      - run:
+          name: run python lints
+          command: |
+            ./build/env/bin/pip install pylint==2.5.3 pylint-django==2.3.0 configparser==5.3.0
+            ./tools/ci/check_for_python_lint.sh
+
       - run:
           name: run tests
           command: |

+ 8 - 0
.github/workflows/commitflow-py3.yml

@@ -19,11 +19,14 @@ jobs:
     steps:
     - name: Checkout
       uses: actions/checkout@v2
+      with:
+        fetch-depth: 0
 
     - name: Set up Python ${{ matrix.python-version }}
       uses: actions/setup-python@v2
       with:
         python-version: ${{ matrix.python-version }}
+
     - name: Cache pip
       uses: actions/cache@v2
       with:
@@ -47,6 +50,11 @@ jobs:
         export ROOT=$PWD
         make apps
 
+    - name: run python lints
+      run: |
+        ./build/env/bin/pip install pylint==2.5.3 pylint-django==2.3.0 configparser==5.3.0
+        ./tools/ci/check_for_python_lint.sh
+
     - name: run tests
       run: |
         PYTHONWARNINGS=always ./build/env/bin/hue test unit --with-xunit --with-cover