# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops#passing-parameters

trigger:
- main

variables:
  MKL_NUM_THREADS: 1
  NUMEXPR_NUM_THREADS: 1
  OMP_NUM_THREADS: 1
  VML_NUM_THREADS: 1
  OPENBLAS_NUM_THREADS: 1
  PYTHONHASHSEED: 0 # Ensure tests are correctly gathered by xdist
  SETUPTOOLS_USE_DISTUTILS: "stdlib"
  USE_MATPLOTLIB: true

jobs:

- template: tools/ci/azure/azure_template_windows.yml
  parameters:
    name: Windows
    vmImage: windows-latest

- template: tools/ci/azure/azure_template_posix.yml
  parameters:
    name: macOS
    vmImage: macOS-latest

- template: tools/ci/azure/azure_template_posix.yml
  parameters:
    name: Linux
    vmImage: ubuntu-latest

# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops#passing-parameters

trigger:
- main
schedules:
- cron: "0 6 * * 1"   # Each Monday at 06:00 UTC
  displayName: Weekly scheduled run
  branches:
    include: [main, maintenance/0.13.x]
  always: true

variables:
  MKL_NUM_THREADS: 1
  NUMEXPR_NUM_THREADS: 1
  OMP_NUM_THREADS: 1
  VML_NUM_THREADS: 1
  OPENBLAS_NUM_THREADS: 1
  PYTHONHASHSEED: 0 # Ensure tests are correctly gathered by xdist
  SETUPTOOLS_USE_DISTUTILS: "stdlib"
  USE_MATPLOTLIB: true

jobs:

- template: tools/ci/azure/azure_template_windows.yml
  parameters:
    name: Windows
    vmImage: windows-latest

- template: tools/ci/azure/azure_template_posix.yml
  parameters:
    name: macOS
    vmImage: macOS-latest

- template: tools/ci/azure/azure_template_posix.yml
  parameters:
    name: Linux
    vmImage: ubuntu-latest

Add a weekly scheduled run to the Azure pipelines
CI: Add a weekly scheduled run to the Azure pipelines

This commit adds a weekly scheduled run to the Azure pipelines CI. It runs each Monday at 06:00 UTC on the main and maintenance/0.13.x branches.

Periodically scheduled runs can detect errors and warnings appearing in changes in upstream dependencies or the build environment. By having a scheduled run they can be traced back easier to a dependency or environment change, then if they would pop up in a random PR.