-
Notifications
You must be signed in to change notification settings - Fork 148
Expand file tree
/
Copy pathazure-wheel-test-upload.yml
More file actions
45 lines (37 loc) · 1.97 KB
/
Copy pathazure-wheel-test-upload.yml
File metadata and controls
45 lines (37 loc) · 1.97 KB
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
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.8'))
displayName: 'Test with brew Python'
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: |
export SKIP_EMBEDED_PYTHON_TEST=true
export CMAKE_BUILD_PARALLEL_LEVEL=4
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['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['NRN_NIGHTLY_UPLOAD'], 'false'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: 'Upload nightly wheel to pypi.org'
- task: TwineAuthenticate@1
inputs:
pythonUploadServiceConnection: AzureNeuronPypi
condition: and(succeeded(), in(variables['Build.Reason'], 'Manual'), 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'), eq(variables['NRN_RELEASE_UPLOAD'], 'true'))
displayName: 'Upload release wheel to pypi.org'