image: python:3.8-slim-buster

stages:
  - build
  - test
  - deploy

build:
  stage: build
  tags:
    - linux
  script:
    - make ci

test:
  stage: test
  tags:
    - linux
  script:
    - python3 -m pip install .
    - make test
    - bash ./tests/cli_in_docker/run_tests.sh

deploy:
  stage: deploy
  tags:
    - linux
  script:
    - python3 -m pip install poetry
    - poetry install
    - bash .ci/realese.sh
