From 4236e60f464cc503915c347f0510855e9a6ff6a2 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Wed, 18 Oct 2023 22:11:01 +0530 Subject: [PATCH 01/20] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..a6a949487 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,36 @@ +# Python package +# Create and test a Python package on multiple Python versions. +# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/python + +trigger: +- main + +pool: + vmImage: ubuntu-latest +strategy: + matrix: + Python27: + python.version: '2.7' + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' + +steps: +- task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + displayName: 'Use Python $(python.version)' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies' + +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'pytest' From 78ccb337855c5b2dbdca213de67863df225a3e0b Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 06:16:07 +0530 Subject: [PATCH 02/20] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 azure-pipelines-1.yml diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 000000000..edd1360ee --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,36 @@ +# Python package +# Create and test a Python package on multiple Python versions. +# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/python + +trigger: +- main + +pool: + vmImage: Default +strategy: + matrix: + Python27: + python.version: '2.7' + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' + +steps: +- task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + displayName: 'Use Python $(python.version)' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies' + +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'pytest' From aec6a778bcbc8683d20c264281f004a44f2c2681 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 06:19:16 +0530 Subject: [PATCH 03/20] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index edd1360ee..b8ed8b50b 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -7,7 +7,7 @@ trigger: - main pool: - vmImage: Default + vmImage: agent01 strategy: matrix: Python27: From 7e4f765235f49d6761499c87a27ef2b617eb9f79 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 06:40:31 +0530 Subject: [PATCH 04/20] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a6a949487..edd1360ee 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - main pool: - vmImage: ubuntu-latest + vmImage: Default strategy: matrix: Python27: From 7e4875aa98ce50fbd115916e31b9da2ad4323877 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 06:43:13 +0530 Subject: [PATCH 05/20] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index edd1360ee..a6a949487 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - main pool: - vmImage: Default + vmImage: ubuntu-latest strategy: matrix: Python27: From 4835c055a2d6509643e58682fa9c0bcbfeca13e7 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 06:50:44 +0530 Subject: [PATCH 06/20] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a6a949487..c239f866b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - main pool: - vmImage: ubuntu-latest + name: Default strategy: matrix: Python27: From 327d55110dbc06185369abd9d3201b55a5b21a29 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 07:54:44 +0530 Subject: [PATCH 07/20] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c239f866b..4035e9be6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,15 +10,8 @@ pool: name: Default strategy: matrix: - Python27: - python.version: '2.7' - Python35: - python.version: '3.5' Python36: python.version: '3.6' - Python37: - python.version: '3.7' - steps: - task: UsePythonVersion@0 inputs: From d4a36ef1cefcb9357db426e3db4b1b84bf008e76 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:05:35 +0530 Subject: [PATCH 08/20] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-2.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 azure-pipelines-2.yml diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml new file mode 100644 index 000000000..490a56800 --- /dev/null +++ b/azure-pipelines-2.yml @@ -0,0 +1,29 @@ +# Python package +# Create and test a Python package on multiple Python versions. +# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/python + +trigger: +- main + +pool: + name: Default +strategy: + matrix: + Python36: + python.version: '3.6.8' +steps: +- task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + displayName: 'Use Python $(python.version)' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies' + +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'pytest' From 8aab6c072a22aa159ec5c765f881b060079e4a8c Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:11:50 +0530 Subject: [PATCH 09/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index 490a56800..816ac526f 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -11,7 +11,7 @@ pool: strategy: matrix: Python36: - python.version: '3.6.8' + python.version: '3.8' steps: - task: UsePythonVersion@0 inputs: From 7e445399278ff076c87c7c09ee63db8594977c31 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:50:04 +0530 Subject: [PATCH 10/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index 816ac526f..4035e9be6 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -11,7 +11,7 @@ pool: strategy: matrix: Python36: - python.version: '3.8' + python.version: '3.6' steps: - task: UsePythonVersion@0 inputs: From 75445b564ef137c3d67a9a2fb57e827b671ceca2 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:52:59 +0530 Subject: [PATCH 11/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index 4035e9be6..816ac526f 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -11,7 +11,7 @@ pool: strategy: matrix: Python36: - python.version: '3.6' + python.version: '3.8' steps: - task: UsePythonVersion@0 inputs: From 89795ea9293923f1e2faa94729438e80044150fd Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:24:10 +0530 Subject: [PATCH 12/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index 816ac526f..bd0cce5b7 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -10,7 +10,7 @@ pool: name: Default strategy: matrix: - Python36: + Python38: python.version: '3.8' steps: - task: UsePythonVersion@0 From 8b332de39f9687698e105d9b72a3173a1697bf46 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:27:49 +0530 Subject: [PATCH 13/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index bd0cce5b7..ad438ec27 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -27,3 +27,9 @@ steps: pip install pytest pytest-azurepipelines pytest displayName: 'pytest' +- task: PythonScript@0 + inputs: + scriptSource: 'inline' + script: | + print('Hello world 1') + print('Hello world 2') From fb349f399aae35204c1b4183ded7d5c638199a24 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Thu, 19 Oct 2023 16:29:02 +0530 Subject: [PATCH 14/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index ad438ec27..58710025a 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -32,4 +32,4 @@ steps: scriptSource: 'inline' script: | print('Hello world 1') - print('Hello world 2') + From 05f1348b7d3eaa96c780abe9ecfabba4efc2c238 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Wed, 8 May 2024 10:37:18 +0530 Subject: [PATCH 15/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index 58710025a..2679d1557 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -32,4 +32,13 @@ steps: scriptSource: 'inline' script: | print('Hello world 1') +- script: | + echo "Variable1: $(Variable1)" + echo "Variable2: $(Variable2)" + echo "SecretVariable: $(test)" + + # Unmask the secret variable + echo "SecretVariable: $(test)" + echo "##vso[task.setvariable variable=SecretVariable;issecret=false]$(SecretVariable)" + displayName: 'Print Runtime Variables' From 3f07272fd102238823db3e581eab20c7ca3ef0d4 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Wed, 8 May 2024 10:43:13 +0530 Subject: [PATCH 16/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index 2679d1557..071365392 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -39,6 +39,6 @@ steps: # Unmask the secret variable echo "SecretVariable: $(test)" - echo "##vso[task.setvariable variable=SecretVariable;issecret=false]$(SecretVariable)" + echo "##vso[task.setvariable variable=SecretVariable;issecret=false]$(test)" displayName: 'Print Runtime Variables' From 4f83bea07c416f908c02a2717582a24dc6217d2e Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Wed, 8 May 2024 10:49:04 +0530 Subject: [PATCH 17/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index 071365392..bc6c21e34 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -35,10 +35,10 @@ steps: - script: | echo "Variable1: $(Variable1)" echo "Variable2: $(Variable2)" - echo "SecretVariable: $(test)" + echo "SecretVariable: $(SecretVariable)" # Unmask the secret variable - echo "SecretVariable: $(test)" - echo "##vso[task.setvariable variable=SecretVariable;issecret=false]$(test)" + echo "SecretVariable: $(SecretVariable)" + echo "##vso[task.setvariable variable=SecretVariable;issecret=false]$(SecretVariable)" displayName: 'Print Runtime Variables' From 850f29e31e73eef8c19715ab7a6ff6e20cb4faae Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Wed, 8 May 2024 10:55:24 +0530 Subject: [PATCH 18/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index bc6c21e34..78b947716 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -35,7 +35,7 @@ steps: - script: | echo "Variable1: $(Variable1)" echo "Variable2: $(Variable2)" - echo "SecretVariable: $(SecretVariable)" + echo "SecretVariable: ${env:TEST}" # Unmask the secret variable echo "SecretVariable: $(SecretVariable)" From f91ba7acd17326b3bb04686ba75f24bb561c8e23 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Wed, 8 May 2024 11:01:45 +0530 Subject: [PATCH 19/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index 78b947716..83e81d4f1 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -35,7 +35,7 @@ steps: - script: | echo "Variable1: $(Variable1)" echo "Variable2: $(Variable2)" - echo "SecretVariable: ${env:TEST}" + echo "SecretVariable: **********" # Unmask the secret variable echo "SecretVariable: $(SecretVariable)" From d71e88bb976d1c1ee46b08eac4396b267b65d4e1 Mon Sep 17 00:00:00 2001 From: Itishree143 <69534701+Itishree143@users.noreply.github.com> Date: Wed, 8 May 2024 11:12:55 +0530 Subject: [PATCH 20/20] Update azure-pipelines-2.yml for Azure Pipelines --- azure-pipelines-2.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml index 83e81d4f1..9ec2cffd1 100644 --- a/azure-pipelines-2.yml +++ b/azure-pipelines-2.yml @@ -35,10 +35,9 @@ steps: - script: | echo "Variable1: $(Variable1)" echo "Variable2: $(Variable2)" - echo "SecretVariable: **********" + echo "SecretVariable: ***********" # Unmask the secret variable - echo "SecretVariable: $(SecretVariable)" - echo "##vso[task.setvariable variable=SecretVariable;issecret=false]$(SecretVariable)" + echo "SecretVariable: $SECRET_VARIABLE" displayName: 'Print Runtime Variables'