This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updates * updates
- Loading branch information
Showing
2 changed files
with
77 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters