Commit 6ae89c9aefe140eb404cf1a17d508a0b093cc7c4
1 parent
34d8310b
Run pylint automatically when building with py3
I do not see how I could keep the code clean for both for pylint2 and pylint3 at the same time, so do not even try.
Showing
1 changed file
with
7 additions
and
0 deletions
.github/workflows/unittests.yml
| ... | ... | @@ -13,6 +13,9 @@ jobs: |
| 13 | 13 | matrix: |
| 14 | 14 | os: ["ubuntu-latest", "windows-latest", "macos-latest"] |
| 15 | 15 | python-version: ["2.x", "3.x", "pypy-3.9"] |
| 16 | + include: | |
| 17 | + - python-version: 3.x | |
| 18 | + runlint: 1 | |
| 16 | 19 | |
| 17 | 20 | steps: |
| 18 | 21 | - uses: actions/checkout@v3 |
| ... | ... | @@ -26,5 +29,9 @@ jobs: |
| 26 | 29 | cat requirements.txt |
| 27 | 30 | python -m pip install --upgrade pip |
| 28 | 31 | pip install -r requirements.txt |
| 32 | + pip install pylint | |
| 33 | + - name: Run pylint | |
| 34 | + if: ${{ matrix.runlint }} | |
| 35 | + run: pylint -E --ignore=thirdparty oletools tests | |
| 29 | 36 | - name: Run unittests |
| 30 | 37 | run: python -m unittest discover -f |
| 31 | 38 | \ No newline at end of file | ... | ... |