Skip to content
Snippets Groups Projects
Verified Commit 29b37f91 authored by jooola's avatar jooola
Browse files

ci: reuse shared ci templates for pre-commit

parent 48547481
No related branches found
No related tags found
1 merge request!59ci: improve pipeline
---
include:
- project: funkwhale/ci
file: /templates/pre-commit.yml
stages:
- lint
- test
......@@ -11,19 +16,7 @@ variables:
DOCKER_TLS_CERTDIR: ""
pre-commit:
stage: lint
image: python:3.11
variables:
PIP_CACHE_DIR: $CI_PROJECT_DIR/.cache/pip
PRE_COMMIT_HOME: $CI_PROJECT_DIR/.cache/pre-commit
cache:
paths:
- $PIP_CACHE_DIR
- $PRE_COMMIT_HOME
before_script:
- pip3 install pre-commit
script:
- pre-commit run --verbose --all --color=always --show-diff-on-failure
extends: [.pre-commit]
#tests:
# stage: 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