From 6870ce275443ecbd33716ecfcb93bb700d55cc17 Mon Sep 17 00:00:00 2001 From: mo1977 <60240693+mo1977@users.noreply.github.com> Date: Sat, 25 Jan 2020 21:11:48 +0000 Subject: [PATCH 1/4] 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..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 e716ee21e31d9f68678cc8c7c7d8c75ed35139c6 Mon Sep 17 00:00:00 2001 From: mo1977 <60240693+mo1977@users.noreply.github.com> Date: Sat, 25 Jan 2020 22:18:33 +0000 Subject: [PATCH 2/4] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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..8de734f49 --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,41 @@ +# 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: | + python -m pip install --upgrade pip + pip install pytest pytest-azurepipelines + pip install -e . + displayName: 'Install dependencies' + +- script: | + python -m pytest tests/ + displayName: 'pytest' From f3e23ee179da1b3c9c5b29edd2cf02ae577b3ff8 Mon Sep 17 00:00:00 2001 From: mo1977 <60240693+mo1977@users.noreply.github.com> Date: Sat, 25 Jan 2020 22:21:42 +0000 Subject: [PATCH 3/4] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 8de734f49..c43eddbed 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -31,9 +31,7 @@ steps: displayName: 'Install dependencies' - script: | - python -m pip install --upgrade pip pip install pytest pytest-azurepipelines - pip install -e . displayName: 'Install dependencies' - script: | From 82cd647ddc2d843726cca3514d82303e4c018f4a Mon Sep 17 00:00:00 2001 From: mo1977 <60240693+mo1977@users.noreply.github.com> Date: Sat, 25 Jan 2020 22:24:45 +0000 Subject: [PATCH 4/4] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index c43eddbed..6f150931b 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -33,7 +33,3 @@ steps: - script: | pip install pytest pytest-azurepipelines displayName: 'Install dependencies' - -- script: | - python -m pytest tests/ - displayName: 'pytest'