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

jobs:
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
- job: linux
  pool: nni-it
  timeoutInMinutes: 120

  steps:
  - template: templates/setup-non-ms-hosted-agent.yml

  - template: templates/config-version.yml
    parameters:
      platform: ubuntu-latest-gpu

  - template: templates/install-dependencies.yml
    parameters:
      platform: ubuntu-latest-gpu

  - template: templates/install-nni.yml

  - script: |
      set -e
      cd examples/tuners/customized_tuner
      python setup.py develop
      nnictl algo register --meta meta_file.yml
    displayName: Install customized tuner

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

- job: windows
39
  pool: NNI CI WINDOWS FULL TEST
liuzhe-lz's avatar
liuzhe-lz committed
40
41
42
43
  timeoutInMinutes: 120

  steps:
  - script: |
Yuge Zhang's avatar
Yuge Zhang committed
44
45
      python -m pip install -U -r dependencies/setup.txt
      python -m pip install -r dependencies/develop.txt
46
      python -m pip install -r dependencies/recommended.txt
liuzhe-lz's avatar
liuzhe-lz committed
47
    displayName: Install Python tools
48

liuzhe-lz's avatar
liuzhe-lz committed
49
50
51
52
53
  - script: |
      python -m pip uninstall nni --yes
      set NNI_RELEASE=999.0
      python setup.py build_ts
      python setup.py bdist_wheel -p win_amd64
54
      python -m pip install dist/nni-999.0-py3-none-win_amd64.whl[PPOTuner,DNGO]
liuzhe-lz's avatar
liuzhe-lz committed
55
    displayName: Install NNI
56

liuzhe-lz's avatar
liuzhe-lz committed
57
58
59
  - script: |
      cd examples/tuners/customized_tuner
      python setup.py develop --user
60
      nnictl algo register --meta meta_file.yml
liuzhe-lz's avatar
liuzhe-lz committed
61
    displayName: Install example customized tuner
62

63
64
  # TODO: remove unit test here

liuzhe-lz's avatar
liuzhe-lz committed
65
66
67
68
69
70
  - script: |
      cd test
      python -m pytest ut
      echo "TODO: TypeScript UT"
    displayName: Unit test
    continueOnError: true
71

liuzhe-lz's avatar
liuzhe-lz committed
72
73
74
75
  - script: |
      cd test
      python nni_test/nnitest/run_tests.py --config config/integration_tests.yml --ts local
    displayName: Integration test