Skip to content
Snippets Groups Projects
Commit bde7eaa7 authored by Moul's avatar Moul
Browse files

[ci] #118: Move format, build, checks jobs into checks stage

- Build and check (mypy, pylint) should be a beforehand check
- Remove comments
parent 7a3012b3
No related branches found
No related tags found
2 merge requests!128Release 0.62.0,!95#118: Set up complete CI/CD pipeline
stages: stages:
- format - checks
- tests - tests
- build
- release - release
- publish_doc - publish_doc
...@@ -11,7 +10,6 @@ variables: ...@@ -11,7 +10,6 @@ variables:
image: $DOCKER_IMAGE/$PYTHON_VERSION:latest image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
# SUB-TASKS
.push_to_github: .push_to_github:
tags: tags:
- github - github
...@@ -40,14 +38,29 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest ...@@ -40,14 +38,29 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
- tests/**/*.py - tests/**/*.py
- pyproject.toml - pyproject.toml
# TASKS
format: format:
extends: extends:
- .changes - .changes
stage: format stage: checks
script: script:
- make check-format - make check-format
build:
extends:
- .changes
stage: checks
script:
- poetry build
check:
extends:
- .changes
stage: checks
script:
- poetry install
- make mypy
- make pylint
.tests: .tests:
extends: .changes extends: .changes
stage: tests stage: tests
...@@ -78,22 +91,6 @@ tests-3.9: ...@@ -78,22 +91,6 @@ tests-3.9:
variables: variables:
PYTHON_VERSION: "3.9" PYTHON_VERSION: "3.9"
check:
extends:
- .changes
stage: tests
script:
- poetry install
- make mypy
- make pylint
build:
extends:
- .changes
stage: build
script:
- poetry build
release: release:
extends: extends:
- .push_to_github - .push_to_github
......
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