Skip to content
Snippets Groups Projects
Commit 3dd32115 authored by Moul's avatar Moul
Browse files

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
parent 82695d0a
No related branches found
No related tags found
1 merge request!271Set up new website structure with MkDocs (#433)
......@@ -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:
......
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