Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Integration test refactoring (#618)
Browse files Browse the repository at this point in the history
* updates

* updates
  • Loading branch information
chicm-ms authored Jan 17, 2019
1 parent 3fcc5e9 commit ce42778
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 5 deletions.
72 changes: 72 additions & 0 deletions azure-pipelines.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
trigger:
- dev-it

jobs:

- job: 'Ubuntu_16_04'
pool: 'NNI CI GPU'

steps:
- script: python3 -m pip install --upgrade pip setuptools
displayName: 'Install python tools'
- script: |
source install.sh
displayName: 'Install nni toolkit via source code'
- script: |
python3 -m pip install sklearn --user
python3 -m pip install torchvision --user
python3 -m pip install keras --user
python3 -m pip install tensorflow==1.9.0 --user
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
PATH=$HOME/.local/bin:$PATH python3 config_test.py --ts local --config config_test/examples/mnist.test.yml
displayName: 'Examples on local machine tests'
- job: 'macOS_10_13'
pool:
vmImage: 'macOS 10.13'
strategy:
matrix:
Python36:
PYTHON_VERSION: '3.6'

steps:
- script: python3 -m pip install --upgrade pip setuptools
displayName: 'Install python tools'
- script: |
source install.sh
displayName: 'Install nni toolkit via source code'
- script: |
python3 -m pip install sklearn --user
python3 -m pip install torchvision --user
python3 -m pip install keras --user
displayName: 'Install dependencies for integration tests'
- script: |
cd test
PATH=$HOME/Library/Python/3.7/bin:$PATH && source unittest.sh
displayName: 'Unit test'
- script: |
cd test
PATH=$HOME/Library/Python/3.7/bin:$PATH python3 naive_test.py
displayName: 'Naive test'
- script: |
cd test
PATH=$HOME/Library/Python/3.7/bin:$PATH python3 tuner_test.py
displayName: 'Built-in tuners / assessors tests'
- script: |
cd test
PATH=$HOME/Library/Python/3.7/bin:$PATH python3 config_test.py --ts local
displayName: 'Examples on local machine tests'
10 changes: 5 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ jobs:
python3 -m pip install keras --user
python3 -m pip install tensorflow==1.9.0 --user
displayName: 'Install dependencies for integration tests'
- script: |
cd test
PATH=$HOME/.local/bin:$PATH python3 config_test.py --ts local --config config_test/examples/mnist.test.yml
displayName: 'Examples on local machine tests'
- script: |
cd test
source unittest.sh
Expand All @@ -36,7 +32,11 @@ jobs:
cd test
PATH=$HOME/.local/bin:$PATH python3 tuner_test.py
displayName: 'Built-in tuners / assessors tests'
- script: |
cd test
PATH=$HOME/.local/bin:$PATH python3 config_test.py --ts local --config config_test/examples/mnist.test.yml
displayName: 'Examples on local machine tests'
- job: 'macOS_10_13'
pool:
vmImage: 'macOS 10.13'
Expand Down

0 comments on commit ce42778

Please sign in to comment.