Skip to content
Snippets Groups Projects
Commit 7eccc3c2 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 80e9b19f
No related branches found
No related tags found
No related merge requests found
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
......
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