From d1c2ea2cb580fce7e6e4b194bad92735cc075a53 Mon Sep 17 00:00:00 2001 From: Rod Norfor Date: Tue, 16 Feb 2021 09:18:20 +0000 Subject: [PATCH 1/5] 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..1ee861801 --- /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 3d99f66c514d97dc936fc37e8c309339ef76d481 Mon Sep 17 00:00:00 2001 From: Rod Norfor Date: Tue, 24 May 2022 11:53:09 +0100 Subject: [PATCH 2/5] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1ee861801..7b4a3669d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -34,3 +34,11 @@ steps: pip install pytest pytest-azurepipelines pytest displayName: 'pytest' +- task: UniversalPackages@0 + inputs: + command: 'publish' + publishDirectory: '$(Build.ArtifactStagingDirectory)' + feedsToUsePublish: 'internal' + vstsFeedPublish: 'python-sample' + vstsFeedPackagePublish: 'flask-test' + versionOption: 'patch' \ No newline at end of file From 3ca4d2c0d8b6c2561700100d05d3ac84769220d5 Mon Sep 17 00:00:00 2001 From: Rod Norfor Date: Tue, 24 May 2022 11:58:06 +0100 Subject: [PATCH 3/5] 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 7b4a3669d..ceac7e4e5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -39,6 +39,6 @@ steps: command: 'publish' publishDirectory: '$(Build.ArtifactStagingDirectory)' feedsToUsePublish: 'internal' - vstsFeedPublish: 'python-sample' + vstsFeedPublish: 'Demo Project/python-sample' vstsFeedPackagePublish: 'flask-test' versionOption: 'patch' \ No newline at end of file From af49e459de017a4cb2ae33e2ca7e5223d2eb769c Mon Sep 17 00:00:00 2001 From: Rod Norfor Date: Tue, 24 May 2022 12:02:50 +0100 Subject: [PATCH 4/5] 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 ceac7e4e5..07c5d5c7b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -39,6 +39,6 @@ steps: command: 'publish' publishDirectory: '$(Build.ArtifactStagingDirectory)' feedsToUsePublish: 'internal' - vstsFeedPublish: 'Demo Project/python-sample' + vstsFeedPublish: 'Demo Project/python-sample2' vstsFeedPackagePublish: 'flask-test' versionOption: 'patch' \ No newline at end of file From 99f4d58c18f04d24daaa6c2e217b0d1d84eb46a6 Mon Sep 17 00:00:00 2001 From: Rod Norfor Date: Tue, 24 May 2022 12:08:07 +0100 Subject: [PATCH 5/5] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 07c5d5c7b..8fa980227 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,15 +10,14 @@ 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' - + Python38: + python.version: '3.8' + Python39: + python.version: '3.9' + Python310: + python.version: '3.10' steps: - task: UsePythonVersion@0 inputs: @@ -39,6 +38,6 @@ steps: command: 'publish' publishDirectory: '$(Build.ArtifactStagingDirectory)' feedsToUsePublish: 'internal' - vstsFeedPublish: 'Demo Project/python-sample2' + vstsFeedPublish: 'Demo Project/python-sample' vstsFeedPackagePublish: 'flask-test' versionOption: 'patch' \ No newline at end of file