File: azure-wheel-test-upload.yml

package info (click to toggle)
neuron 8.2.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,768 kB
  • sloc: cpp: 149,571; python: 58,449; ansic: 50,329; sh: 3,510; xml: 213; pascal: 51; makefile: 35; sed: 5
file content (66 lines) | stat: -rw-r--r-- 3,518 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
steps:

  - task: PublishBuildArtifacts@1
    inputs:
      pathToPublish: '$(Build.SourcesDirectory)/wheelhouse'
    displayName: 'Publish wheel as build artifact'

  - script: |
      brew install python
      export SKIP_EMBEDED_PYTHON_TEST=true
      packaging/python/test_wheels.sh /usr/local/bin/python3 wheelhouse/*.whl
    condition: and(eq(variables['agent.os'], 'Darwin'), eq(variables['python.version'], '3.7'))
    displayName: 'Test with brew Python'

  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(python.version)'

  - script: |
      export SKIP_EMBEDED_PYTHON_TEST=true
      packaging/python/test_wheels.sh $(which python) $(ls -t wheelhouse/*.whl)
    displayName: 'Test with System Python'

  - task: TwineAuthenticate@1
    inputs:
      pythonUploadServiceConnection: AzureNeuronPypiNightly
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual', 'Schedule'), ne(variables.GPU_BUILD, 'true'), ne(variables['NRN_NIGHTLY_UPLOAD'], 'false'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

  - script: |
      python -m pip install twine
      python -m twine upload --verbose --skip-existing -r NeuronPypiNightly --config-file $(PYPIRC_PATH) wheelhouse/*.whl
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual', 'Schedule'), ne(variables.GPU_BUILD, 'true'), ne(variables['NRN_NIGHTLY_UPLOAD'], 'false'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
    displayName: 'Upload nightly wheel to pypi.org'

  - task: TwineAuthenticate@1
    inputs:
      pythonUploadServiceConnection: AzureNeuronGpuPypiNightly
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual', 'Schedule'), eq(variables.GPU_BUILD, 'true'), ne(variables['NRN_NIGHTLY_UPLOAD'], 'false'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

  - script: |
      python -m pip install twine
      python -m twine upload --verbose --skip-existing -r NeuronGpuPypiNightly --config-file $(PYPIRC_PATH) wheelhouse/*.whl
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual', 'Schedule'), eq(variables.GPU_BUILD, 'true'), ne(variables['NRN_NIGHTLY_UPLOAD'], 'false'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
    displayName: 'Upload nightly GPU wheel to pypi.org'

  - task: TwineAuthenticate@1
    inputs:
      pythonUploadServiceConnection: AzureNeuronPypi
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual'), ne(variables.GPU_BUILD, 'true'), eq(variables['NRN_RELEASE_UPLOAD'], 'true'))

  - script: |
      python -m pip install twine
      python -m twine upload --verbose --skip-existing -r NeuronPypi --config-file $(PYPIRC_PATH) wheelhouse/*.whl
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual'), ne(variables.GPU_BUILD, 'true'), eq(variables['NRN_RELEASE_UPLOAD'], 'true'))
    displayName: 'Upload release wheel to pypi.org'

  - task: TwineAuthenticate@1
    inputs:
      pythonUploadServiceConnection: AzureNeuronGpuPypi
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual'), eq(variables.GPU_BUILD, 'true'), eq(variables['NRN_RELEASE_UPLOAD'], 'true'))

  - script: |
      python -m pip install twine
      python -m twine upload --verbose --skip-existing -r NeuronGpuPypiProj --config-file $(PYPIRC_PATH) wheelhouse/*.whl
    condition: and(succeeded(), in(variables['Build.Reason'], 'Manual'), eq(variables.GPU_BUILD, 'true'), eq(variables['NRN_RELEASE_UPLOAD'], 'true'))
    displayName: 'Upload release GPU wheel to pypi.org'