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

  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
      python3 -m pip install torch==0.4.1 --user
      python3 -m pip install torchvision==0.2.1 --user
      python3 -m pip install keras==2.1.6 --user
SparkSnail's avatar
SparkSnail committed
15
      python3 -m pip install tensorflow-gpu==1.12.0 --user
chicm-ms's avatar
chicm-ms committed
16
      sudo apt-get install swig -y
SparkSnail's avatar
SparkSnail committed
17
      PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC
18
      PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB
chicm-ms's avatar
chicm-ms committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    displayName: 'Install dependencies for integration tests'
  - script: |
      cd test
      source unittest.sh
    displayName: 'Unit test'
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 naive_test.py
    displayName: 'Naive test'
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 tuner_test.py
    displayName: 'Built-in tuners / assessors tests'
  - script: |
      cd test
34
      PATH=$HOME/.local/bin:$PATH python3 config_test.py --ts local --local_gpu
chicm-ms's avatar
chicm-ms committed
35
36
37
38
39
    displayName: 'Examples and advanced features tests on local machine'
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 metrics_test.py
    displayName: 'Trial job metrics test'
chicm-ms's avatar
chicm-ms committed
40
41
42
43
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 cli_test.py
    displayName: 'nnicli test'