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

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

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:
16
  filter.modified.globs: 'examples/model_compress/**,nni/algorithms/compression/**,nni/compression/**,pipelines/full-test-compression.yml,test/algo/compression/**'
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: 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
Yuge Zhang's avatar
Yuge Zhang committed
34
    pool: nni-it-1es-11
J-shang's avatar
J-shang committed
35
    timeoutInMinutes: 60
36

J-shang's avatar
J-shang committed
37
    steps:
Yuge Zhang's avatar
Yuge Zhang committed
38
39
40
41
    - template: templates/fix-apt-1es.yml
      parameters:
        check_gpu: true

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

47
48
49
50
    - script: |
        python -m pip install "pytorch-lightning<1.7"
      displayName: Pin PytorchLightning version

J-shang's avatar
J-shang committed
51
    - template: templates/install-nni.yml
52

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

55
56
57
    - script: |
        cd test/algo
        python -m pytest compression
Yuge Zhang's avatar
Yuge Zhang committed
58
      displayName: Compression unit test
59

Yuge Zhang's avatar
Yuge Zhang committed
60
61
62
63
    - script: |
        cd test
        source scripts/model_compression.sh
      displayName: Model compression test