From fe0cea4f3a3a21ac87a2a59a4723e7b7838b34da Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sat, 8 Feb 2020 15:16:25 +0100 Subject: [PATCH] [ci] #284: fix: changes wasn't inherited but erased - Build and tests jobs weren't triggered when the code was changing --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30578203..7c612ff0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,15 +17,16 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest - tests/*.py .changes: - extends: .code_changes only: changes: + - silkaj/*.py + - tests/*.py - .gitlab-ci.yml - pyproject.toml - poetry.lock build: - extends: .changes + extends: [.code_changes, .changes] stage: checks script: - poetry build @@ -38,7 +39,7 @@ format: - black --check silkaj tests .tests: - extends: .changes + extends: [.code_changes, .changes] stage: tests image: $DOCKER_IMAGE/$PYTHON_VERSION:latest script: @@ -91,7 +92,7 @@ pypi: - poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD pages: - extends: .changes + extends: [.code_changes, .changes] needs: [tests-3.7-coverage] only: [dev] stage: coverage -- GitLab