euscan-ng/.gitlab-ci.yml
Alfred Wingate 02fd3a9e79
Add gitlab CI
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2023-11-15 23:30:40 +02:00

26 lines
451 B
YAML

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