From 95370a0cbb669aa4d5d43a0f881a7f57d984e0ef Mon Sep 17 00:00:00 2001 From: Snifter00 <35964004+Snifter00@users.noreply.github.com> Date: Thu, 5 Mar 2020 15:01:14 +0000 Subject: [PATCH 1/6] 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 6d81d79c35cbbfdc6e33a2bc6a1ec186c5cb6afc Mon Sep 17 00:00:00 2001 From: Snifter00 <35964004+Snifter00@users.noreply.github.com> Date: Fri, 6 Mar 2020 10:07:23 +0000 Subject: [PATCH 2/6] Update azure-pipelines.yml --- azure-pipelines.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7d405f9ee..bd331184a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,8 +10,6 @@ pool: vmImage: 'ubuntu-latest' strategy: matrix: - Python27: - python.version: '2.7' Python35: python.version: '3.5' Python36: From 9ec7bdeeb52af7ac7f3759d8558d1f91f5f09330 Mon Sep 17 00:00:00 2001 From: Snifter00 <35964004+Snifter00@users.noreply.github.com> Date: Fri, 6 Mar 2020 10:09:05 +0000 Subject: [PATCH 3/6] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bd331184a..00356100b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,5 +30,5 @@ steps: - script: | pip install pytest pytest-azurepipelines - pytest + python -m pytest displayName: 'pytest' From 25dd3cbbf4cf07b1d422f98a1dcf978e1fe77f42 Mon Sep 17 00:00:00 2001 From: Snifter00 <35964004+Snifter00@users.noreply.github.com> Date: Fri, 6 Mar 2020 10:16:47 +0000 Subject: [PATCH 4/6] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 00356100b..b32ba7232 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,5 +30,5 @@ steps: - script: | pip install pytest pytest-azurepipelines - python -m pytest + python pytest displayName: 'pytest' From d4bdc3c7d8b0754518fe17c3f400248760cb0d77 Mon Sep 17 00:00:00 2001 From: Snifter00 <35964004+Snifter00@users.noreply.github.com> Date: Fri, 6 Mar 2020 10:18:46 +0000 Subject: [PATCH 5/6] Update requirements.txt --- requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requirements.txt b/requirements.txt index 012c5f6ee..236b10999 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,5 @@ itsdangerous==0.24 Jinja2==2.10 MarkupSafe==1.0 Werkzeug==0.15.3 +pytest==5.3.5 +pytest-cov==2.8.1 From bfc8eb8947cc35b63d8e55fc17b1280a0e5c649b Mon Sep 17 00:00:00 2001 From: Snifter00 <35964004+Snifter00@users.noreply.github.com> Date: Fri, 6 Mar 2020 10:20:47 +0000 Subject: [PATCH 6/6] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b32ba7232..00356100b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,5 +30,5 @@ steps: - script: | pip install pytest pytest-azurepipelines - python pytest + python -m pytest displayName: 'pytest'