Skip to content
Snippets Groups Projects
Unverified Commit 6ff027ad authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Run pre-commit on changes only.

parent d0bb8f13
No related branches found
No related tags found
1 merge request!133[ci] Add code quality report
Pipeline #22342 passed
...@@ -29,6 +29,14 @@ cache: ...@@ -29,6 +29,14 @@ cache:
- make setup_headless - make setup_headless
- source .venv/bin/activate - source .venv/bin/activate
pre-commit:
tags: [shell, envinf]
rules:
- if: $CI_MERGE_REQUEST_IID
needs: []
script:
- pre-commit run --from-ref ${CI_MERGE_REQUEST_DIFF_BASE_SHA} --to-ref HEAD
build: build:
script: script:
- pip install build - pip install build
...@@ -38,7 +46,6 @@ tests (arch): ...@@ -38,7 +46,6 @@ tests (arch):
tags: [shell, envinf] tags: [shell, envinf]
needs: [] needs: []
script: script:
- pre-commit run --all-files
- *setup-headless - *setup-headless
- make test - make test
......
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