Skip to content

Commit

Permalink
[ci] Add pylint stage (#1640)
Browse files Browse the repository at this point in the history
  • Loading branch information
heapcrash committed Jul 10, 2020
1 parent 3940631 commit a6edf26
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pylint.yml
@@ -0,0 +1,34 @@
name: PyLint
on: [pull_request]

jobs:
build:
strategy:
matrix:
python-version: [3.8]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Cache for pip
uses: actions/cache@v1
id: cache-pip
with:
path: ~/.cache/pip
key: ${{ matrix.os }}-cache-pip

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: PyLint
run: |
set -x
pip install pylint
pylint --exit-zero --errors-only pwnlib > current.txt
git fetch origin
git checkout origin/"$GITHUB_BASE_REF"
pylint --exit-zero --errors-only pwnlib > base.txt
diff base.txt current.txt

0 comments on commit a6edf26

Please sign in to comment.