github actions: Merge workflows for linting to lint.yml

This commit is contained in:
Takeshi KOMIYA 2020-06-14 15:36:53 +09:00
parent b0490ce812
commit 0e271f28a4
3 changed files with 6 additions and 34 deletions

View File

@ -1,16 +0,0 @@
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

View File

@ -1,10 +1,14 @@
name: Lint source code (flake8)
name: Lint source code
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tool: [docslint, flake8, mypy]
steps:
- uses: actions/checkout@v2
@ -15,4 +19,4 @@ jobs:
- name: Install dependencies
run: pip install -U tox
- name: Run Tox
run: tox -e flake8
run: tox -e ${{ matrix.tool }}

View File

@ -1,16 +0,0 @@
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