full-test-nas.yml 1.89 KB
Newer Older
1
trigger: none
J-shang's avatar
J-shang committed
2

3
schedules:
Yuge Zhang's avatar
Yuge Zhang committed
4
- cron: 0 18 * * *
5
6
7
  branches:
    include: [ master ]

J-shang's avatar
J-shang committed
8
9
10
11
12
13
14
15
resources:
  repositories:
    - repository: azpfilter
      type: github
      name: microsoft/azure-pipeline-filter
      endpoint: github-filter-connection

variables:
Yuge Zhang's avatar
Yuge Zhang committed
16
  filter.modified.globs: 'examples/nas/**,nni/algorithms/nas/**,nni/nas/**,nni/retiarii/**,pipelines/full-test-nas.yml,test/ut/nas/**,test/algo/nas/**'
J-shang's avatar
J-shang committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  filter.prbody.heading: '#### Test Options'
  filter.prbody.optionIndex: 2

stages:
- stage: filter
  jobs:
  - job: check
    pool:
      vmImage: ubuntu-latest
    steps:
    - template: templates/stage-filter.yml

- stage: test
  # dependencies.$(StageName).outputs['$(JobName).$(TaskName).$(VariableName)']
  condition: and(succeeded(), ne(dependencies.filter.outputs['check.execution.skipsubsequent'], 'true'))
  jobs:
  - job: linux
Yuge Zhang's avatar
Yuge Zhang committed
34
    pool: nni-it-1es-11
35
    timeoutInMinutes: 90
36

J-shang's avatar
J-shang committed
37
    steps:
38
    - template: templates/check-gpu-status.yml
Yuge Zhang's avatar
Yuge Zhang committed
39

J-shang's avatar
J-shang committed
40
41
    - template: templates/install-dependencies.yml
      parameters:
Yuge Zhang's avatar
Yuge Zhang committed
42
43
        platform: ubuntu-latest-gpu
        python_env: venv
44

J-shang's avatar
J-shang committed
45
    - template: templates/install-nni.yml
46

Yuge Zhang's avatar
Yuge Zhang committed
47
48
    - template: templates/download-test-data.yml

J-shang's avatar
J-shang committed
49
50
    - script: |
        cd test
Yuge Zhang's avatar
Yuge Zhang committed
51
52
53
54
        python -m pytest algo/nas
      displayName: NAS test

  - job: windows
Yuge Zhang's avatar
Yuge Zhang committed
55
    pool: nni-it-1es-windows
56
    timeoutInMinutes: 90
Yuge Zhang's avatar
Yuge Zhang committed
57
58

    steps:
59
60
61
    - template: templates/check-gpu-status.yml
      parameters:
        platform: windows
Yuge Zhang's avatar
Yuge Zhang committed
62

Yuge Zhang's avatar
Yuge Zhang committed
63
64
    - template: templates/install-dependencies.yml
      parameters:
65
        platform: windows-gpu
Yuge Zhang's avatar
Yuge Zhang committed
66
        python_env: noop
Yuge Zhang's avatar
Yuge Zhang committed
67
68
69
70
71

    - template: templates/install-nni.yml
      parameters:
        user: false

72
73
74
    - template: templates/download-test-data.yml
      parameters:
        platform: windows
Yuge Zhang's avatar
Yuge Zhang committed
75
76
77
78
79
80
81
82

    - powershell: |
        python test/vso_tools/ssl_patch.py
      displayName: SSL patch

    - powershell: |
        cd test
        python -m pytest algo/nas
J-shang's avatar
J-shang committed
83
      displayName: NAS test