include:
  - project: 'teiresias2/ci'
    file: 'variables.yaml'
  - project: 'teiresias2/ci'
    file: 'rust.yaml'

variables:
  extends: .variables

format:
  extends: .rust/check-format

clippy:
  extends: .rust/check-clippy

check-docs:
  extends: .rust/check-docs

test-coverage:
  extends: .rust/test-coverage
  services:
    - name: $CI_MLFLOW_IMAGE
      alias: mlflow
  variables:
    CI_DEBUG_SERVICES: "true"

release:
  extends: .rust/release
  needs:
    - test-coverage

public-release:
  extends: .rust/release-public
  needs:
    - test-coverage
