Split into separate jobs
This commit is contained in:
parent
d8d700f949
commit
be94c7d5fe
|
|
@ -1,13 +1,22 @@
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
name: Lint Python and Find Syntax Errors
|
name: Lint Python and Find Syntax Errors
|
||||||
jobs:
|
jobs:
|
||||||
|
mypy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: archlinux:latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: pacman --noconfirm -Syu python mypy
|
||||||
|
- name: run mypy
|
||||||
|
run: mypy . --ignore-missing-imports
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: pacman --noconfirm -Syu python python-pip mypy
|
- run: pacman --noconfirm -Syu python python-pip
|
||||||
- run: python -m pip install --upgrade pip
|
- run: python -m pip install --upgrade pip
|
||||||
- run: pip install flake8 pytest
|
- run: pip install flake8 pytest
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
|
|
@ -16,5 +25,3 @@ jobs:
|
||||||
flake8 . --count --select=E9,F63,F7 --show-source --statistics
|
flake8 . --count --select=E9,F63,F7 --show-source --statistics
|
||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
- name: run mypy
|
|
||||||
run: mypy . --ignore-missing-imports
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue