Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
trigger:
- '*'

pool:
vmImage: 'ubuntu-18.04'
demands:
- npm

variables:
pythonVersion: '3.6'

steps:

# Use a specific Python version
- task: UsePythonVersion@0
inputs:
versionSpec: '$(pythonVersion)'

# Run a python script
- script: python src/basic_print.py

# Run an inline python script
- task: PythonScript@0
inputs:
scriptSource: 'inline'
script: |
print('Printing from inline python script')

# Installing dependencies
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install dependencies'

# Intalling requirements
- script: pip install -r requirements.txt
displayName: 'Install requirements'
1 change: 1 addition & 0 deletions src/basic_print.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print('printing from a python script')