You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
steps:
|
|
|
|
- task: UsePythonVersion@0
|
|
|
|
displayName: Install python
|
|
|
|
inputs:
|
|
|
|
versionSpec: '$(python.version)'
|
|
|
|
condition: ne(variables['python.version'], '')
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y python2-dev
|
|
|
|
displayName: Install build deps
|
|
|
|
condition: and(eq(variables['python.version'], ''), eq(variables['Agent.OS'], 'Linux'))
|
|
|
|
|
|
|
|
- script: python -mpip install tox
|
|
|
|
displayName: Install tooling
|
|
|
|
|
|
|
|
- script: python -mtox -e "$(tox.env)"
|
|
|
|
displayName: "Run tests"
|
|
|
|
env:
|
|
|
|
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
|
|
|
|
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
|
|
|
|
AWS_DEFAULT_REGION: $(AWS_DEFAULT_REGION)
|