Skip to content
Snippets Groups Projects
Commit ae36a2bd 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 f04d7bed
No related branches found
No related tags found
No related merge requests found
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.8: ...@@ -78,22 +91,6 @@ tests-3.8:
extends: .tests extends: .tests
tags: [poetry-78] tags: [poetry-78]
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