"git@developer.sourcefind.cn:change/sglang.git" did not exist on "94d42b67941beff565257d184a8b9c4fd975c19a"
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 }}
uses: actions/setup-python@v3
with: with:
python-version: 3.7.4 python-version: ${{ matrix.python-version }}
architecture: x64 - name: Install dependencies
- name: Checkout PyTorch run: |
uses: actions/checkout@master python -m pip install --upgrade pip
- name: Install flake8 pip install pylint
run: pip install flake8 - name: Analysing the code with pylint
- name: Run flake8 run: |
uses: suo/flake8-github-action@releases/v1 pylint $(git ls-files '*.py')
with:
# 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