Skip to content
Snippets Groups Projects
Commit 6daac600 authored by Florian Bruhin's avatar Florian Bruhin
Browse files

Add CI

parent 89b2a525
Branches
No related tags found
No related merge requests found
Pipeline #203675 failed
default:
before_script: &poetry_setup
- curl -sSL https://install.python-poetry.org | python3 -
- export PATH="/root/.local/bin:$PATH"
# - poetry config virtualenvs.create false
- poetry config virtualenvs.in-project true # for caching
- poetry install --no-interaction --no-ansi
image: python:3.10
cache:
key: "project-${CI_JOB_NAME}"
paths:
- .cache/pip
- .venv
stages:
- lint
- test
black:
stage: lint
script: poetry run black --check .
mypy:
stage: lint
script: poetry run mypy --strict taas_client tests
flake8:
stage: lint
script: poetry run flake8 taas_client tests
pytest:
stage: test
script: poetry run pytest -v --junit-xml=pytest.xml
artifacts:
reports:
junit: pytest.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment