pipelines-it-local.yml 1.26 KB
Newer Older
chicm-ms's avatar
chicm-ms committed
1
2
jobs:
- job: 'integration_test_local_ubuntu'
chicm-ms's avatar
chicm-ms committed
3
  timeoutInMinutes: 120
chicm-ms's avatar
chicm-ms committed
4
5
6
7
8
9
10
11
12

  steps:
  - script: python3 -m pip install --upgrade pip setuptools --user
    displayName: 'Install python tools'
  - script: |
      source install.sh
    displayName: 'Install nni toolkit via source code'
  - script: |
      python3 -m pip install scikit-learn==0.20.0 --user
chicm-ms's avatar
chicm-ms committed
13
14
      python3 -m pip install torchvision==0.4.1 --user
      python3 -m pip install torch==1.3.1 --user
chicm-ms's avatar
chicm-ms committed
15
      python3 -m pip install keras==2.1.6 --user
16
      python3 -m pip install tensorflow-gpu==1.15 --user
chicm-ms's avatar
chicm-ms committed
17
      sudo apt-get install swig -y
SparkSnail's avatar
SparkSnail committed
18
      PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
19
      PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
chicm-ms's avatar
chicm-ms committed
20
21
22
    displayName: 'Install dependencies for integration tests'
  - script: |
      cd test
chicm-ms's avatar
chicm-ms committed
23
      source scripts/unittest.sh
chicm-ms's avatar
chicm-ms committed
24
25
26
    displayName: 'Unit test'
  - script: |
      cd test
chicm-ms's avatar
chicm-ms committed
27
28
      PATH=$HOME/.local/bin:$PATH python3 nni_test/nnitest/run_tests.py --config config/integration_tests.yml --ts local
    displayName: 'Integration test'
Yuge Zhang's avatar
Yuge Zhang committed
29
30
31
32
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH source scripts/nas.sh
    displayName: 'NAS test'
chicm-ms's avatar
chicm-ms committed
33
34
  - script: |
      cd test
chicm-ms's avatar
chicm-ms committed
35
36
      source scripts/model_compression.sh
    displayName: 'Model compression test'