From 3dd32115c58f6dedbf6bda74e64ac296ab5f3382 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Tue, 17 Dec 2024 16:23:56 +0100 Subject: [PATCH] CI: Trigger website job if a docs or Py file changes so it update the docs and/or the coverage report Rename pre-commit extends definition --- .gitlab-ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 98030dc2..90ae8da1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,7 +18,7 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest - .pre-commit-config.yaml - .gitlab-ci.yml -.doc_changes: +.pc_changes: rules: - changes: - "**.py" @@ -27,6 +27,14 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest - "**/*.md" - .pre-commit-config.yaml +.mkdocs_changes: + rules: + - changes: + - "mkdocs.yml" + - "docs/**.md" + - "**.py" + - "**/*.py" + .changes: rules: - changes: @@ -66,7 +74,7 @@ mypy: pre-commit:hooks: extends: - - .doc_changes + - .pc_changes - .pre-commit stage: checks script: @@ -219,6 +227,7 @@ release: website: stage: website needs: ["tests:3.12:cov"] + extends: .mkdocs_changes variables: RELEASE: "0.12" rules: -- GitLab