Skip to content
Snippets Groups Projects
Commit 3037bf7f 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 3cee3217
No related branches found
No related tags found
2 merge requests!128Release 0.62.0,!95#118: Set up complete CI/CD pipeline
...@@ -29,18 +29,26 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest ...@@ -29,18 +29,26 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
# github push # github push
- bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?" - 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: .changes:
rules: rules:
- changes: - changes:
- duniterpy/**/*.py - duniterpy/**/*.py
- tests/**/*.py
- examples/*.py
- .gitlab-ci.yml - .gitlab-ci.yml
- Makefile - Makefile
- tests/**/*.py
- pyproject.toml - pyproject.toml
format: format:
extends: extends:
- .changes - .code_changes
stage: checks stage: checks
script: script:
- make check-format - make check-format
...@@ -54,14 +62,14 @@ build: ...@@ -54,14 +62,14 @@ build:
type: type:
extends: extends:
- .changes - .code_changes
stage: checks stage: checks
script: script:
- make mypy - make mypy
lint: lint:
extends: extends:
- .changes - .code_changes
stage: tests stage: tests
tags: [redshift] tags: [redshift]
script: script:
......
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