version: 0.2

phases:
  pre_build:
    commands:
      - echo "Installing Dagger SDK for Python"
      - pip install dagger-io
      - echo "Installing Dagger CLI"
      - cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sh; cd -; }

  build:
    commands:
      - echo "Running Dagger pipeline"
      - dagger run python ci/main.py

  post_build:
    commands:
      - echo "Build completed on `date`"
