From f5110e69ba55a2fba9947fa0fdd6b88b84621337 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 18 Sep 2022 11:43:32 +0300 Subject: [PATCH] add pylint to ci --- .github/workflows/ci.yml | 14 ++++++++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a66e81b7..35c8480f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,20 @@ jobs: curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-flake8.sh . ./prepare-and-run-flake8.sh "$(basename $GITHUB_REPOSITORY)" test examples benchmarks + pylint: + name: Pylint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: "Main Script" + run: | + USE_CONDA_BUILD=1 + EXTRA_INSTALL="pyvisfile scipy matplotlib" + curl -L -O https://tiker.net/ci-support-v0 + . ci-support-v0 + build_py_project + run_pylint "$(basename $GITHUB_REPOSITORY)" test/test_*.py + docs: name: Documentation runs-on: ubuntu-latest diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 52c76990..ce90a893 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -128,6 +128,17 @@ Flake8: except: - tags +Pylint: + script: + - EXTRA_INSTALL="pybind11 numpy mako scipy matplotlib pyvisfile mpi4py" + - curl -L -O https://tiker.net/ci-support-v0 + - . ci-support-v0 + - build_py_project + tags: + - python3 + except: + - tags + Benchmarks: stage: test script: | -- GitLab