From 916ea4d86047077881e94bc75e7412bad12ee353 Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov <ivadmi5@gmail.com> Date: Fri, 20 Oct 2023 18:13:05 +0300 Subject: [PATCH] chores(CI): Run lints for tests --- pgproto/.gitlab-ci.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/pgproto/.gitlab-ci.yml b/pgproto/.gitlab-ci.yml index e2547b4897..57446e8611 100644 --- a/pgproto/.gitlab-ci.yml +++ b/pgproto/.gitlab-ci.yml @@ -36,6 +36,26 @@ variables: echo "No cache found" fi +lint-for-tests: + stage: test + tags: + - docker + image: + name: ${BASE_IMAGE} + pull_policy: if-not-present + variables: + GIT_DEPTH: 100 + GIT_SUBMODULE_STRATEGY: recursive + + script: + - | + # Pipenv install + ci-log-section start "pipenv-install" Installing pip dependencies ... + PIPENV_VENV_IN_PROJECT=1 PIP_NO_CACHE_DIR=true python3.10 -m pipenv install --deploy + ci-log-section end "pipenv-install" + # - pipenv run pytest --numprocesses auto -v + - pipenv run lint + test-linux: extends: .test tags: @@ -53,14 +73,6 @@ test-linux: - cargo clippy --version - cargo clippy -- --deny clippy::all - - | - # Pipenv install - ci-log-section start "pipenv-install" Installing pip dependencies ... - PIPENV_VENV_IN_PROJECT=1 PIP_NO_CACHE_DIR=true python3.10 -m pipenv install --deploy - ci-log-section end "pipenv-install" - # - pipenv run pytest --numprocesses auto -v - # - pipenv run lint - - | # Save cache if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then -- GitLab