image: python:3.8-slim-buster

stages:
  - build
  - test
  - deploy

before_script:
  - apt update && apt install -y make

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

test:
  stage: test
  tags:
    - linux
  script:
    - python3 -m pip install .
    - make test

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