27 lines
505 B
YAML
27 lines
505 B
YAML
stages:
|
|
- lint
|
|
|
|
variables:
|
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
|
|
cache:
|
|
paths:
|
|
- .cache/pip
|
|
- /var/venv/
|
|
|
|
lint:
|
|
image: python:3.8-slim
|
|
stage: lint
|
|
except:
|
|
- /^wip-.*$/
|
|
- /^old-.*$/
|
|
- pitchme
|
|
script:
|
|
- python -V
|
|
- apt-get update -qq && apt-get -qq -y install make python3-venv
|
|
- python3 -m venv /var/venv/
|
|
- source /var/venv/bin/activate
|
|
- pip install -r requirements.txt
|
|
- pip install -r requirements-dev.txt
|
|
- make --no-print-directory --quiet lint
|