full-test-nas.yml 1.91 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
10
11
12
13
14
15
16
resources:
  repositories:
    - repository: azpfilter
      type: github
      name: microsoft/azure-pipeline-filter
      endpoint: github-filter-connection

variables:
Yuge Zhang's avatar
Yuge Zhang committed
17
  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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  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
35
    pool: nni-it-1es-11
36
    timeoutInMinutes: 90
37

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

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

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

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

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

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

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

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

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

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

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