diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-11-17 01:17:34 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-17 23:56:46 +0200 |
commit | 0435691e83fb7172e2a9635d2eb32d5521089916 (patch) | |
tree | 7d44091e5d2df677c595c1cb685f8ac91d6668a0 | |
parent | f6ad5d139869db1db130e675275d25fff08dc09f (diff) | |
download | meson-0435691e83fb7172e2a9635d2eb32d5521089916.zip meson-0435691e83fb7172e2a9635d2eb32d5521089916.tar.gz meson-0435691e83fb7172e2a9635d2eb32d5521089916.tar.bz2 |
lint+mypy: move to github actions
actions: run if .yml itself changed
-rw-r--r-- | .github/workflows/lint_mypy.yml | 33 | ||||
-rw-r--r-- | .github/workflows/unusedargs_missingreturn.yml | 4 | ||||
-rw-r--r-- | azure-pipelines.yml | 15 |
3 files changed, 35 insertions, 17 deletions
diff --git a/.github/workflows/lint_mypy.yml b/.github/workflows/lint_mypy.yml new file mode 100644 index 0000000..235c9cb --- /dev/null +++ b/.github/workflows/lint_mypy.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 diff --git a/.github/workflows/unusedargs_missingreturn.yml b/.github/workflows/unusedargs_missingreturn.yml index 303a8d1..03802dc 100644 --- a/.github/workflows/unusedargs_missingreturn.yml +++ b/.github/workflows/unusedargs_missingreturn.yml @@ -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/**" diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ab0c7f2..e62dde5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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: |