24 lines
494 B
YAML
24 lines
494 B
YAML
variables:
|
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
|
|
cache:
|
|
paths:
|
|
- .cache/pip
|
|
- /var/venv/
|
|
|
|
lint:
|
|
image: python:3.8-slim
|
|
stage: test
|
|
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-dev.txt
|
|
- make --no-print-directory --quiet lint
|
|
- make --no-print-directory --quiet test
|