From 6ce508313bd60256df4a98a5f51f2f23b7ef1a58 Mon Sep 17 00:00:00 2001 From: yeoleo <56951737+yeoleo@users.noreply.github.com> Date: Tue, 25 Feb 2020 17:12:54 -0800 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..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 387176e735c2855dd9e3e782e217ab5741adbb8f Mon Sep 17 00:00:00 2001 From: yeoleo <56951737+yeoleo@users.noreply.github.com> Date: Tue, 25 Feb 2020 22:51:22 -0800 Subject: [PATCH 2/5] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7d405f9ee..d28a5f1f0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,5 +32,8 @@ steps: - script: | pip install pytest pytest-azurepipelines + which pip + which pip3 + pip --version pytest displayName: 'pytest' From 25e48d53f1ccf46d3502e2166320c8464e3fa4af Mon Sep 17 00:00:00 2001 From: yeoleo <56951737+yeoleo@users.noreply.github.com> Date: Tue, 25 Feb 2020 22:56:12 -0800 Subject: [PATCH 3/5] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d28a5f1f0..edb324cd8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,8 +32,11 @@ steps: - script: | pip install pytest pytest-azurepipelines + echo "checking version of pip" which pip + echo "checking version of pip3" which pip3 + echo "Version of pip is" pip --version pytest displayName: 'pytest' From e2faa380c2ac081e308d9248126582fc488a76bb Mon Sep 17 00:00:00 2001 From: yeoleo <56951737+yeoleo@users.noreply.github.com> Date: Tue, 25 Feb 2020 23:16:21 -0800 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 edb324cd8..0aa27dc41 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -38,5 +38,5 @@ steps: which pip3 echo "Version of pip is" pip --version - pytest + pytest --version displayName: 'pytest' From 42947c72c0024ab2fb1572b1a7790772697e3a14 Mon Sep 17 00:00:00 2001 From: yeoleo <56951737+yeoleo@users.noreply.github.com> Date: Tue, 25 Feb 2020 23:26:57 -0800 Subject: [PATCH 5/5] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0aa27dc41..903146fcd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -38,5 +38,6 @@ steps: which pip3 echo "Version of pip is" pip --version + pip3 --version pytest --version displayName: 'pytest'