28 lines
491 B
YAML
28 lines
491 B
YAML
image: python:3.11.5
|
|
|
|
variables:
|
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
|
|
cache:
|
|
paths:
|
|
- .cache/pip
|
|
|
|
before_script:
|
|
- python --version ; pip --version # For debugging
|
|
- pip install virtualenv
|
|
- virtualenv .venv
|
|
- source .venv/bin/activate
|
|
- pip install -r requirements.txt
|
|
|
|
lint:
|
|
script:
|
|
- python -m black --check .
|
|
- python -m isort --check .
|
|
- python -m flake8
|
|
- python -m pylint app
|
|
- python -m mypy .
|
|
|
|
test:
|
|
script:
|
|
- python -m pytest
|