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

Installation test pipeline #1709

Merged
merged 13 commits into from
Nov 11, 2019
Merged
Changes from 12 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
49 changes: 49 additions & 0 deletions test/pipelines-it-installation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
jobs:
- job: 'pip_install_ubuntu_python36'
pool:
vmImage: 'ubuntu-18.04'
strategy:
matrix:
Python36:
PYTHON_VERSION: '3.6'

steps:
- script: |
python3 -V
python3 -m pip install --upgrade pip setuptools --user
python3 -m pip install --upgrade nni --user
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only tests released version right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So when this test case fails, we have already published a broken release...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a start point, we can add more later, for example:

  1. pre-release testpypi test
  2. make dev install
  3. install for different platforms (python version, virtual envs)
  4. anything related installation not covered by IT.

displayName: 'Install nni'
- script: |
cd examples/trials/mnist
~/.local/bin/nnictl create --config config.yml
displayName: 'mnist test'

- job: 'pip_install_macOS_python36'
pool:
vmImage: 'macOS-10.13'
strategy:
matrix:
Python36:
PYTHON_VERSION: '3.6'

steps:
- script: |
python3 -V
python3 -m pip install --upgrade pip setuptools --user
python3 -m pip install --upgrade nni --user
displayName: 'Install nni'

- job: 'pip_install_windows_python36'
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Python36:
PYTHON_VERSION: '3.6'

steps:
- script: |
python -V
python -m pip install --upgrade pip setuptools --user
python -m pip install --upgrade nni --user
displayName: 'Install nni'