Skip to content
Snippets Groups Projects
Commit 916ea4d8 authored by Dmitry Ivanov's avatar Dmitry Ivanov Committed by Maksim Kaitmazian
Browse files

chores(CI): Run lints for tests

parent 36cecf1c
No related branches found
No related tags found
1 merge request!920pgproto module
...@@ -36,6 +36,26 @@ variables: ...@@ -36,6 +36,26 @@ variables:
echo "No cache found" echo "No cache found"
fi 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: test-linux:
extends: .test extends: .test
tags: tags:
...@@ -53,14 +73,6 @@ test-linux: ...@@ -53,14 +73,6 @@ test-linux:
- cargo clippy --version - cargo clippy --version
- cargo clippy -- --deny clippy::all - 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 # Save cache
if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment