Unverified Commit 795371ad authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files

[Misc] Try use official pylint workflow. (#4568)



* polish update_version

* update pylint workflow.

* add

* revert.
Co-authored-by: default avatarSteve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal>
parent ec96407c
name: Lint name: Pylint
on: on: [push]
push:
paths:
- '*.py'
jobs: jobs:
flake8_py3: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps: steps:
- name: Setup Python - uses: actions/checkout@v3
uses: actions/setup-python@v1 - name: Set up Python ${{ matrix.python-version }}
with: uses: actions/setup-python@v3
python-version: 3.7.4 with:
architecture: x64 python-version: ${{ matrix.python-version }}
- name: Checkout PyTorch - name: Install dependencies
uses: actions/checkout@master run: |
- name: Install flake8 python -m pip install --upgrade pip
run: pip install flake8 pip install pylint
- name: Run flake8 - name: Analysing the code with pylint
uses: suo/flake8-github-action@releases/v1 run: |
with: pylint $(git ls-files '*.py')
# NOTE: this needs to be the same as the job name.
checkName: 'flake8_py3'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment