blob: b11af6c72f8c5c75a5c98a98a78f8f97b206c36e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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
|