nni/pipelines/full-test-hpo.yml

58 строки
1.4 KiB
YAML
Исходник Постоянная ссылка Обычный вид История

trigger: none
2022-06-13 03:33:55 +03:00
2022-06-16 03:27:41 +03:00
schedules:
- cron: 0 18 * * *
branches:
include: [ master ]
always: true
2022-06-13 03:33:55 +03:00
variables:
2022-06-28 04:36:31 +03:00
filter.modified.globs: 'examples/tuners/**,nni/algorithms/hpo/**,pipelines/full-test-hpo.yml,'
2022-06-13 03:33:55 +03:00
filter.prbody.heading: '#### Test Options'
filter.prbody.optionIndex: 1
stages:
- stage: filter
jobs:
- job: check
pool:
vmImage: ubuntu-latest
steps:
- template: templates/stage-filter.yml
- stage: test
# dependencies.$(StageName).outputs['$(JobName).$(TaskName).$(VariableName)']
condition: and(succeeded(), ne(dependencies.filter.outputs['check.execution.skipsubsequent'], 'true'))
jobs:
- job: linux
2022-07-08 06:13:41 +03:00
pool: nni-it-1es-11
2022-06-13 03:33:55 +03:00
timeoutInMinutes: 60
steps:
2022-08-15 04:49:31 +03:00
- template: templates/check-gpu-status.yml
2022-07-08 06:13:41 +03:00
2022-06-13 03:33:55 +03:00
- template: templates/install-dependencies.yml
parameters:
2022-07-08 06:13:41 +03:00
platform: ubuntu-latest-gpu
python_env: venv
2022-06-13 03:33:55 +03:00
- template: templates/install-nni.yml
- template: templates/install-customized-tuner.yml
- script: |
set -e
(cd test && python -m pytest ut)
export CI=true
2022-11-16 05:37:48 +03:00
(cd ts/nni_manager && npm run test)
2022-06-13 03:33:55 +03:00
displayName: SDK unit test
# TODO: this should be replaced with a dedicated HPO algo test suite
- script: |
cd test
2022-07-08 06:13:41 +03:00
python training_service/nnitest/run_tests.py --config training_service/config/integration_tests.yml --ts local
2022-06-13 03:33:55 +03:00
displayName: Integration test
# TODO: should add a test on platforms other than linux