download-test-data.yml 973 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
# The test data should be uploaded to:
#   https://nni.blob.core.windows.net/testdata/mnist.zip
#   https://nni.blob.core.windows.net/testdata/cifar10.zip
#   ...
#
# We can't upload the data regularly on pipelines,
# because it's not easy to setup auto-download for some datasets.
# See cache-dependencies-template.yml on how to generate credentials to upload new test data.

10
11
12
13
14
parameters:
- name: platform
  type: string
  default: linux

15
16
steps:

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
- ${{ if contains(parameters.platform, 'windows') }}:
    powershell: |
      New-Item -Path test/data -ItemType directory -Force
      cd test
      azcopy copy 'https://nni.blob.core.windows.net/testdata/*' data
      python vso_tools/unpack_testdata.py
      Get-ChildItem data
  ${{ else }}:
    script: |
      set -e
      mkdir -p test/data
      cd test
      azcopy copy 'https://nni.blob.core.windows.net/testdata/*' data
      python vso_tools/unpack_testdata.py
      ls -al data
32
  displayName: Download test data