pipelines-it-local-windows.yml 1.3 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
jobs:
- job: 'Test'

  steps:
  - script: |
      powershell.exe -file install.ps1
    displayName: 'Install nni toolkit via source code'
  - script: |
      python -m pip install scikit-learn==0.20.0 --user
      python -m pip install keras==2.1.6 --user
Yuge Zhang's avatar
Yuge Zhang committed
11
      python -m pip install torch===1.2.0 torchvision===0.4.1 -f https://download.pytorch.org/whl/torch_stable.html --user
12
13
14
15
16
      python -m pip install torchvision --user
      python -m pip install tensorflow-gpu==1.11.0 --user
    displayName: 'Install dependencies for integration tests'
  - script: |
      cd test
17
      python generate_ts_config.py --ts local
18
19
20
    displayName: 'generate config files'
  - script: |
      cd test
21
      python config_test.py --ts local --local_gpu --exclude smac,bohb
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    displayName: 'Examples and advanced features tests on local machine'
  - script: |
      cd test
      powershell.exe -file unittest.ps1
    displayName: 'unit test'
  - script: |
      cd test
      python naive_test.py
    displayName: 'Naive test'
  - script: |
      cd test
      python tuner_test.py
    displayName: 'Built-in tuners / assessors tests'
  - script: |
      cd test
      python metrics_test.py
    displayName: 'Trial job metrics test'
chicm-ms's avatar
chicm-ms committed
39
40
41
42
  - script: |
      cd test
      PATH=$HOME/.local/bin:$PATH python3 cli_test.py
    displayName: 'nnicli test'