Merge pull request #7833 from tk0miya/run_linttools_on_gha

Run lint tools on GH Actions
This commit is contained in:
Takeshi KOMIYA 2020-06-14 13:44:27 +09:00 committed by GitHub
commit fed4647463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 6 deletions

16
.github/workflows/docslint.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Lint the format of document
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
- name: Install dependencies
run: pip install -U tox
- name: Run Tox
run: tox -e docslint

18
.github/workflows/flake8.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Lint source code (flake8)
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: pip install -U tox
- name: Run Tox
run: tox -e flake8

16
.github/workflows/mypy.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Lint source code (mypy)
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
- name: Install dependencies
run: pip install -U tox
- name: Run Tox
run: tox -e mypy

View File

@ -29,12 +29,6 @@ jobs:
- TOXENV=du16
- python: '3.6'
env: TOXENV=docs
- python: '3.6'
env: TOXENV=docslint
- python: '3.6'
env: TOXENV=mypy
- python: '3.6'
env: TOXENV=flake8
- language: node_js
node_js: '10.7'