full-test-nas.yml 1.75 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
  branches:
    include: [ master ]
7
  always: true
8

J-shang's avatar
J-shang committed
9
variables:
Yuge Zhang's avatar
Yuge Zhang committed
10
  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
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  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
28
    pool: nni-it-1es-11
29
    timeoutInMinutes: 90
30

J-shang's avatar
J-shang committed
31
    steps:
32
    - template: templates/check-gpu-status.yml
Yuge Zhang's avatar
Yuge Zhang committed
33

J-shang's avatar
J-shang committed
34
35
    - template: templates/install-dependencies.yml
      parameters:
Yuge Zhang's avatar
Yuge Zhang committed
36
37
        platform: ubuntu-latest-gpu
        python_env: venv
38

J-shang's avatar
J-shang committed
39
    - template: templates/install-nni.yml
40

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

J-shang's avatar
J-shang committed
43
44
    - script: |
        cd test
Yuge Zhang's avatar
Yuge Zhang committed
45
46
47
48
        python -m pytest algo/nas
      displayName: NAS test

  - job: windows
Yuge Zhang's avatar
Yuge Zhang committed
49
    pool: nni-it-1es-windows
50
    timeoutInMinutes: 90
Yuge Zhang's avatar
Yuge Zhang committed
51
52

    steps:
53
54
55
    - template: templates/check-gpu-status.yml
      parameters:
        platform: windows
Yuge Zhang's avatar
Yuge Zhang committed
56

Yuge Zhang's avatar
Yuge Zhang committed
57
58
    - template: templates/install-dependencies.yml
      parameters:
59
        platform: windows-gpu
Yuge Zhang's avatar
Yuge Zhang committed
60
        python_env: noop
Yuge Zhang's avatar
Yuge Zhang committed
61
62
63
64
65

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

66
67
68
    - template: templates/download-test-data.yml
      parameters:
        platform: windows
Yuge Zhang's avatar
Yuge Zhang committed
69
70
71
72
73
74
75
76

    - 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
77
      displayName: NAS test