-
Notifications
You must be signed in to change notification settings - Fork 67
/
azure-pipelines.yml
45 lines (36 loc) · 952 Bytes
/
azure-pipelines.yml
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
trigger: none
pr: none
pool:
vmImage: "ubuntu-latest"
strategy:
matrix:
Python36:
python.version: '3.8'
variables:
interpFeed: "responsibleai"
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
displayName: Upgrade pip to latest
- script: |
python -m pip install -e ./python
displayName: Install interpret-text
- script: |
python -m pip install --upgrade setuptools wheel twine
cd ./python
python setup.py bdist_wheel
cd ..
displayName: Create a wheel
- task: TwineAuthenticate@1
displayName: Configure twine authentication
inputs:
artifactFeed: "responsibleai"
- script: |
cd ./python
python -m twine upload -r "responsibleai" --config-file $(PYPIRC_PATH) dist/*
cd ..
displayName: Publish artifacts