Skip to content

Commit b53c95c

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 1b3dd6e commit b53c95c

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

azure-pipelines.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,21 @@ steps:
3030
pip install -r requirements.txt
3131
displayName: 'Install dependencies'
3232

33+
- task: PythonScript@0
34+
inputs:
35+
scriptSource: inline
36+
script: |
37+
import sys
38+
print ('Executing script file is:', str(sys.argv[0]))
39+
print ('The arguments are:', str(sys.argv))
40+
import argparse
41+
parser = argparse.ArgumentParser()
42+
parser.add_argument("--world", help="Provide the name of the world to greet.")
43+
args = parser.parse_args()
44+
print ('Hello ', args.world)
45+
arguments: --world Venus
46+
3347
- script: |
34-
pip install pytest pytest-azurepipelines
35-
pytest
36-
displayName: 'pytest'
48+
python -m pip install flake8
49+
flake8 .
50+
displayName: 'Run lint tests'

0 commit comments

Comments
 (0)