# This file configures the workflows to trigger in our Prow jobs.
# see kubeflow/testing/py/run_e2e_workflow.py
python_paths:
  - kubeflow/examples/py
workflows:
  # E2E test for code_search example
  - app_dir: kubeflow/examples/test/workflows
    component: code_search
    name: code-search
    job_types:
    - presubmit
    - postsubmit
    include_dirs:
    - code_search/*

  # E2E test for github issue summarization example
  - app_dir: kubeflow/examples/test/workflows
    component: gis
    name: gis
    job_types:
    - periodic
    - presubmit
    - postsubmit
    include_dirs:
    - github_issue_summarization/*

  # E2E test for xgboost housing example
  - app_dir: kubeflow/examples/test/workflows
    component: xgboost_ames_housing
    name: xgboost
    job_types:
    - presubmit
    - postsubmit
    include_dirs:
    - xgboost_ames_housing/*

  # E2E test for pytorch mnist example
  - app_dir: kubeflow/examples/test/workflows
    component: pytorch_mnist
    name: pytorch-mnist
    job_types:
      - periodic
      - presubmit
      - postsubmit
    include_dirs:
      - pytorch_mnist/*

  # E2E test for various notebooks
  # New notebooks can just add a step to the workflow
  - py_func: kubeflow.examples.create_e2e_workflow.create_workflow
    name: notebooks
    job_types:
      - periodic
      - presubmit
      - postsubmit
    include_dirs:
      - xgboost_synthetic/*
      - py/kubeflow/examples/create_e2e_workflow.py

  # E2E test for various notebooks
  # New notebooks can just add a step to the workflow
  - py_func: kubeflow.examples.create_e2e_workflow.create_workflow
    name: notebooks-v1
    job_types:
      - periodic
      - presubmit
      - postsubmit
    include_dirs:
      - xgboost_synthetic/*
      - py/kubeflow/examples/create_e2e_workflow.py
    kwargs:
      cluster_pattern: kf-v1-(?!n\d\d)

  # E2E test for mnist example
  - py_func: kubeflow.examples.create_e2e_workflow.create_workflow
    name: mnist
    job_types:
      - periodic
      - presubmit
      - postsubmit
    include_dirs:
      - mnist/*
      - py/kubeflow/examples/create_e2e_workflow.py
