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

jobs:
- job: linux
J-shang's avatar
J-shang committed
10
  pool: nni-ci-gpu-local
liuzhe-lz's avatar
liuzhe-lz committed
11
12
13
14
15
16
17
  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)"

Yuge Zhang's avatar
Yuge Zhang committed
18
19
      python3 -m pip install -U -r dependencies/setup.txt
      python3 -m pip install -r dependencies/develop.txt
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
31
    displayName: Install NNI

  - script: |
      set -e
      sudo apt-get install swig -y
Yuge Zhang's avatar
Yuge Zhang committed
32
33
      python3 -m pip install -r dependencies/recommended_gpu.txt
      python3 -m pip install -e .[SMAC,BOHB,PPOTuner,DNGO]
liuzhe-lz's avatar
liuzhe-lz committed
34
35
36
37
38
39
    displayName: Install extra dependencies

  - script: |
      set -e
      cd examples/tuners/customized_tuner
      python3 setup.py develop --user
40
      nnictl algo register --meta meta_file.yml
liuzhe-lz's avatar
liuzhe-lz committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
    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)
    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