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

[ci] #284: fix: changes wasn't inherited but erased

- Build and tests jobs weren't triggered when the code was changing
parent 6d5fe97f
No related branches found
No related tags found
No related merge requests found
Pipeline #7971 passed
...@@ -17,7 +17,6 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest ...@@ -17,7 +17,6 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
- tests/*.py - tests/*.py
.changes: .changes:
extends: .code_changes
only: only:
changes: changes:
- .gitlab-ci.yml - .gitlab-ci.yml
...@@ -25,7 +24,7 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest ...@@ -25,7 +24,7 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
- poetry.lock - poetry.lock
build: build:
extends: .changes extends: [.code_changes, .changes]
stage: checks stage: checks
script: script:
- poetry build - poetry build
...@@ -38,7 +37,7 @@ format: ...@@ -38,7 +37,7 @@ format:
- black --check silkaj tests - black --check silkaj tests
.tests: .tests:
extends: .changes extends: [.code_changes, .changes]
stage: tests stage: tests
image: $DOCKER_IMAGE/$PYTHON_VERSION:latest image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
script: script:
...@@ -91,7 +90,7 @@ pypi: ...@@ -91,7 +90,7 @@ pypi:
- poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD - poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
pages: pages:
extends: .changes extends: [.code_changes, .changes]
needs: [tests-3.7-coverage] needs: [tests-3.7-coverage]
only: [dev] only: [dev]
stage: coverage stage: coverage
......
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