full-test-linux.yml 1.92 KB
Newer Older
liuzhe-lz's avatar
liuzhe-lz committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
trigger: none
pr: none
schedules:
- cron: 0 16 * * *
  branches:
    include: [ master ]

jobs:
- job: linux
  pool: NNI CI GPU3
  timeoutInMinutes: 120

  steps:
  - script: |
      echo "##vso[task.setvariable variable=PATH]${PATH}:${HOME}/.local/bin"
      echo "##vso[task.setvariable variable=NNI_RELEASE]999.$(date -u +%Y%m%d%H%M%S)"

18
19
      python3 -m pip install --upgrade pip setuptools
      python3 -m pip install pytest
liuzhe-lz's avatar
liuzhe-lz committed
20
21
22
23
24
25
    displayName: Prepare

  - script: |
      set -e
      python3 setup.py build_ts
      python3 setup.py bdist_wheel -p manylinux1_x86_64
26
      python3 -m pip install dist/nni-${NNI_RELEASE}-py3-none-manylinux1_x86_64.whl[SMAC,BOHB,PPOTuner]
liuzhe-lz's avatar
liuzhe-lz committed
27
28
29
30
    displayName: Install NNI

  - script: |
      set -e
31
      python3 -m pip install scikit-learn==0.23.2
J-shang's avatar
J-shang committed
32
33
      python3 -m pip install torchvision==0.6.1
      python3 -m pip install torch==1.5.1
34
35
36
      python3 -m pip install keras==2.1.6
      python3 -m pip install tensorflow==2.3.1 tensorflow-estimator==2.3.0
      python3 -m pip install thop
liuzhe-lz's avatar
liuzhe-lz committed
37
38
39
40
41
42
43
      sudo apt-get install swig -y
    displayName: Install extra dependencies

  - script: |
      set -e
      cd examples/tuners/customized_tuner
      python3 setup.py develop --user
44
      nnictl algo register --meta meta_file.yml
liuzhe-lz's avatar
liuzhe-lz committed
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
    displayName: Install customized tuner

  - script: |
      set -e
      (cd test && python3 -m pytest ut)
      export PATH=$PATH:$PWD/toolchain/yarn/bin
      export CI=true
      (cd ts/nni_manager && yarn test)
      (cd ts/nasui && yarn test)
    displayName: Unit test
    continueOnError: true

  - script: |
      cd test
      python3 nni_test/nnitest/run_tests.py --config config/integration_tests.yml --ts local
    displayName: Integration test
    continueOnError: true

  - script: |
      cd test
      source scripts/nas.sh
    displayName: NAS test
    continueOnError: true

  - script: |
      cd test
      source scripts/model_compression.sh
    displayName: Model compression test