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

3
4
5
6
7
# schedules:
# - cron: 0 16 * * *
#   branches:
#     include: [ master ]

J-shang's avatar
J-shang committed
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
resources:
  repositories:
    - repository: azpfilter
      type: github
      name: microsoft/azure-pipeline-filter
      endpoint: github-filter-connection

variables:
  filter.modified.globs: 'examples/model_compress/**,nni/algorithms/compression/**,nni/compression/**'
  filter.prbody.heading: '#### Test Options'
  filter.prbody.optionIndex: 3

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
    timeoutInMinutes: 60
36

J-shang's avatar
J-shang committed
37
38
39
40
41
    steps:
    - template: templates/install-dependencies.yml
      parameters:
        platform: ubuntu-latest-gpu
        python_env: venv
42

J-shang's avatar
J-shang committed
43
    - template: templates/install-nni.yml
44

J-shang's avatar
J-shang committed
45
    - template: templates/download-test-data.yml
46

J-shang's avatar
J-shang committed
47
48
49
50
    - script: |
        cd test
        source scripts/model_compression.sh
      displayName: Model compression test