From 30cca781cef425d24004d60765a8e1364c90b160 Mon Sep 17 00:00:00 2001 From: jerger Date: Thu, 24 Feb 2022 16:06:56 +0100 Subject: [PATCH] fix #3 --- .gitlab-ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 74360db..fc70eef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,6 @@ before_script: - python --version - python -m pip install --upgrade pip - pip install -r requirements.txt - - pip install -r dev_requirements.txt stages: - lint @@ -14,30 +13,31 @@ flake8: stage: lint allow_failure: true script: - - flake8 --max-line-length=120 --count --select=E9,F63,F7,F82 --show-source --statistics src/python/ddadevops/*.py - - flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics src/python/ddadevops/*.py + - pip install -r dev_requirements.txt + - flake8 --max-line-length=120 --count --select=E9,F63,F7,F82 --show-source --statistics src/main/python/ddadevops/*.py + - flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics src/main/python/ddadevops/*.py mypy: stage: lint allow_failure: true script: - - python -m mypy src/python/ddadevops/*.py - - python -m mypy src/python/ddadevops/*.py + - pip install -r dev_requirements.txt + - python -m mypy src/main/python/ddadevops/*.py pylint: stage: lint allow_failure: true script: - - pylint -d C0301 src/python/ddadevops/*.py + - pip install -r dev_requirements.txt + - pylint -d C0301 src/main/python/ddadevops/*.py pypi-dev: stage: upload rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: never - - if: '$CI_COMMIT_TAG !~ /^release-.*$/' + - if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG !~ /^release-.*$/' script: - - pip install -r requirements.txt - pyb publish upload pypi-stable: