diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7eaa560839bb39b72fe2023f5d850a6bc2c78280..5080d2eef054d2090e7f56f738b9b79bed631de9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,6 @@ stages: - - format + - checks - tests - - build - release - publish_doc @@ -11,7 +10,6 @@ variables: image: $DOCKER_IMAGE/$PYTHON_VERSION:latest -# SUB-TASKS .push_to_github: tags: - github @@ -40,14 +38,29 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest - tests/**/*.py - pyproject.toml -# TASKS format: extends: - .changes - stage: format + stage: checks script: - make check-format +build: + extends: + - .changes + stage: checks + script: + - poetry build + +check: + extends: + - .changes + stage: checks + script: + - poetry install + - make mypy + - make pylint + .tests: extends: .changes stage: tests @@ -78,22 +91,6 @@ tests-3.8: extends: .tests tags: [poetry-78] -check: - extends: - - .changes - stage: tests - script: - - poetry install - - make mypy - - make pylint - -build: - extends: - - .changes - stage: build - script: - - poetry build - release: extends: - .push_to_github