mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
github actions: Merge workflows for linting to lint.yml
This commit is contained in:
parent
b0490ce812
commit
0e271f28a4
16
.github/workflows/docslint.yml
vendored
16
.github/workflows/docslint.yml
vendored
@ -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
|
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
@ -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 }}
|
||||
|
16
.github/workflows/mypy.yml
vendored
16
.github/workflows/mypy.yml
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user