lint+mypy: move to github actions

actions: run if .yml itself changed
pull/6136/merge
Michael Hirsch, Ph.D 5 years ago committed by Jussi Pakkanen
parent f6ad5d1398
commit 0435691e83
  1. 33
      .github/workflows/lint_mypy.yml
  2. 4
      .github/workflows/unusedargs_missingreturn.yml
  3. 15
      azure-pipelines.yml

@ -0,0 +1,33 @@
name: LintMypy
on:
push:
paths:
- "**.py"
- ".github/workflows/lint_mypy.yml"
pull_request:
paths:
- "**.py"
- ".github/workflows/lint_mypy.yml"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.x'
- run: python -m pip install pylint
- run: pylint mesonbuild
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.x'
- run: python -m pip install mypy
- run: mypy --follow-imports=skip mesonbuild/mtest.py mesonbuild/minit.py mesonbuild/msetup.py mesonbuild/wrap tools/ mesonbuild/modules/fs.py

@ -5,14 +5,14 @@ name: UnusedMissingReturn
on:
push:
paths:
- "**.yml"
- ".github/workflows/unusedargs_missingreturn.yml"
- "test cases/cmake/**"
- "test cases/common/**"
- "test cases/fortran/**"
- "test cases/platform-linux/**"
pull_request:
paths:
- "**.yml"
- ".github/workflows/unusedargs_missingreturn.yml"
- "test cases/cmake/**"
- "test cases/common/**"
- "test cases/fortran/**"

@ -11,21 +11,6 @@ variables:
CI: 1
jobs:
- job: PylintMyPy
pool:
vmImage: ubuntu-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
addToPath: true
- script: python -m pip install pylint mypy
displayName: 'Install Pylint, MyPy'
- script: pylint mesonbuild
displayName: Lint Checks
- script: mypy --follow-imports=skip mesonbuild/mtest.py mesonbuild/minit.py mesonbuild/msetup.py mesonbuild/wrap tools/ mesonbuild/modules/fs.py
- job: vs2015
pool:

Loading…
Cancel
Save