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

[ci] #118: Introduce code_changes for format, type, and lint jobs

- To save runners CPU for a check not needed
- Add missing examples folder
parent 1318b3be
No related branches found
No related tags found
No related merge requests found
......@@ -29,18 +29,26 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
# github push
- bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?"
.code_changes:
only:
changes:
- duniterpy/**/*.py
- tests/**/*.py
- examples/*.py
.changes:
rules:
- changes:
- duniterpy/**/*.py
- tests/**/*.py
- examples/*.py
- .gitlab-ci.yml
- Makefile
- tests/**/*.py
- pyproject.toml
format:
extends:
- .changes
- .code_changes
stage: checks
script:
- make check-format
......@@ -54,14 +62,14 @@ build:
type:
extends:
- .changes
- .code_changes
stage: checks
script:
- make mypy
lint:
extends:
- .changes
- .code_changes
stage: checks
script:
- make pylint
......
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