This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathfull-test-nas.yml
82 lines (65 loc) · 1.87 KB
/
full-test-nas.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
trigger: none
schedules:
- cron: 0 18 * * *
branches:
include: [ master ]
always: true
variables:
filter.modified.globs: 'examples/nas/**,nni/algorithms/nas/**,nni/nas/**,nni/retiarii/**,pipelines/full-test-nas.yml,test/ut/nas/**,test/algo/nas/**'
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
pool: nni-it-1es-11
timeoutInMinutes: 90
steps:
- template: templates/check-gpu-status.yml
- template: templates/install-dependencies.yml
parameters:
platform: ubuntu-latest-gpu
python_env: venv
- template: templates/install-nni.yml
- template: templates/download-test-data.yml
- script: |
cd test
python algo/nas/benchmark/prepare.py
displayName: Prepare NAS benchmark
- script: |
cd test
python -m pytest algo/nas
displayName: NAS test
- job: windows
pool: nni-it-1es-windows
timeoutInMinutes: 120
steps:
- template: templates/check-gpu-status.yml
parameters:
platform: windows
- template: templates/install-dependencies.yml
parameters:
platform: windows-gpu
python_env: noop
- template: templates/install-nni.yml
parameters:
user: false
- template: templates/download-test-data.yml
parameters:
platform: windows
- powershell: |
python test/vso_tools/ssl_patch.py
displayName: SSL patch
- powershell: |
cd test
python -m pytest algo/nas
displayName: NAS test