From 15cab164c4dc4dab4aa7df4cab923a638705ab51 Mon Sep 17 00:00:00 2001 From: Graysoncui <35246913+Graysoncui@users.noreply.github.com> Date: Tue, 18 Aug 2020 16:34:19 +1200 Subject: [PATCH 1/7] First test 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..7d405f9ee --- /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: +- master + +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 2e6e9d85ddcf60ced724b3bf5418e75486bbc09a Mon Sep 17 00:00:00 2001 From: Graysoncui <35246913+Graysoncui@users.noreply.github.com> Date: Tue, 18 Aug 2020 16:39:08 +1200 Subject: [PATCH 2/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7d405f9ee..495200256 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,8 +16,8 @@ strategy: python.version: '3.5' Python36: python.version: '3.6' - Python37: - python.version: '3.7' + #Python37: + #python.version: '3.7' steps: - task: UsePythonVersion@0 From 939d223e318971ef46823a3a70ad5a1e8875a8d3 Mon Sep 17 00:00:00 2001 From: Graysoncui <35246913+Graysoncui@users.noreply.github.com> Date: Tue, 18 Aug 2020 17:03:39 +1200 Subject: [PATCH 3/7] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d07d6d8ed..17acd3dea 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,5 @@ When you submit a pull request, a CLA-bot automatically determines whether you n * This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). * For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or * Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. + +Test From 0f4ab7506d69fef66284787b2292ad3a641f070f Mon Sep 17 00:00:00 2001 From: Graysoncui <35246913+Graysoncui@users.noreply.github.com> Date: Wed, 19 Aug 2020 13:22:31 +1200 Subject: [PATCH 4/7] 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 495200256..9290d8eff 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - master pool: - vmImage: 'ubuntu-latest' + vmImage: 'ubuntu-16.04' strategy: matrix: Python27: From 2d4d2c74854a8d75951390639bb12d32674e3c60 Mon Sep 17 00:00:00 2001 From: Graysoncui <35246913+Graysoncui@users.noreply.github.com> Date: Wed, 19 Aug 2020 13:29:53 +1200 Subject: [PATCH 5/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9290d8eff..3a9731166 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,8 +6,34 @@ trigger: - master + +# pool: +# vmImage: 'ubuntu-16.04' +# strategy: +# matrix: +# Python27: +# python.version: '2.7' +# Python35: +# python.version: '3.5' +# Python36: +# python.version: '3.6' +# #Python37: +# #python.version: '3.7' + + +strategy: + matrix: + linux: + imageName: "ubuntu-16.04" + mac: + imageName: "macos-10.14" + windows: + imageName: "vs2017-win2016" + maxParallel: 3 + pool: - vmImage: 'ubuntu-16.04' + vmImage: $(imageName) + strategy: matrix: Python27: From 8f26253411e5a929325d37c866fe436760e7aa0a Mon Sep 17 00:00:00 2001 From: Graysoncui <35246913+Graysoncui@users.noreply.github.com> Date: Wed, 19 Aug 2020 13:31:12 +1200 Subject: [PATCH 6/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3a9731166..422b87188 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,21 +29,27 @@ strategy: imageName: "macos-10.14" windows: imageName: "vs2017-win2016" - maxParallel: 3 - -pool: - vmImage: $(imageName) - -strategy: - matrix: Python27: python.version: '2.7' Python35: python.version: '3.5' Python36: python.version: '3.6' - #Python37: - #python.version: '3.7' + maxParallel: 3 + +pool: + vmImage: $(imageName) + +# 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 From 959f12878cc4e22550dac068293d2b9815267007 Mon Sep 17 00:00:00 2001 From: Graysoncui <35246913+Graysoncui@users.noreply.github.com> Date: Wed, 19 Aug 2020 13:35:20 +1200 Subject: [PATCH 7/7] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 422b87188..27dec3e89 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -25,31 +25,18 @@ strategy: matrix: linux: imageName: "ubuntu-16.04" + python.version: '2.7' mac: imageName: "macos-10.14" + python.version: '2.7' windows: imageName: "vs2017-win2016" - Python27: python.version: '2.7' - Python35: - python.version: '3.5' - Python36: - python.version: '3.6' maxParallel: 3 pool: vmImage: $(imageName) -# 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