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

Integration test refactoring #618

Merged
merged 2 commits into from
Jan 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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