Add gitlab CI

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-11-15 18:42:35 +02:00
parent 65e77ac533
commit 02fd3a9e79
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

25
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,25 @@
image: python:latest
variables:
PIP_CACHE_DIR: ${CI_PROJECT_DIR}/.cache/pip
cache:
paths:
- ${PIP_CACHE_DIR}
before_script:
- python --version ; pip --version
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
pre-commit:
variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
cache:
paths:
- ${PRE_COMMIT_HOME}
script:
- pip install pre-commit
- pre-commit run --all-files