From b310bf25320954417957bca62c73ed2fc873437f Mon Sep 17 00:00:00 2001 From: Keith Chason Date: Wed, 27 Dec 2023 10:15:50 -0500 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 0000000..6f401c6 --- /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 bd16c0e5a1f271bef5d5d585bfd55575bb4ee1b8 Mon Sep 17 00:00:00 2001 From: Keith Chason Date: Wed, 27 Dec 2023 10:36:22 -0500 Subject: [PATCH 2/4] Update azure-pipelines.yml Comment out 3.x --- azure-pipelines.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6f401c6..4c7f212 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,12 +12,12 @@ strategy: matrix: Python27: python.version: '2.7' - Python35: - python.version: '3.5' - Python36: - python.version: '3.6' - Python37: - python.version: '3.7' + # Python35: + # python.version: '3.5' + # Python36: + # python.version: '3.6' + # Python37: + # python.version: '3.7' steps: - task: UsePythonVersion@0 From 9e98945096cae10f1bdfe7dcabad168bcf852e2d Mon Sep 17 00:00:00 2001 From: Keith Chason Date: Fri, 4 Oct 2024 01:34:53 +0000 Subject: [PATCH 3/4] Update Azure pipeline versions --- azure-pipelines.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4c7f212..2ccf8c5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,14 +10,12 @@ 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' + Python310: + python.version: '3.10' + Python311: + python.version: '3.11' + Python312: + python.version: '3.12' steps: - task: UsePythonVersion@0 From 14d290c9183d1d85252f930ffa0abe81329b150c Mon Sep 17 00:00:00 2001 From: Keith Chason Date: Fri, 4 Oct 2024 01:36:28 +0000 Subject: [PATCH 4/4] Switch install logic --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2ccf8c5..f476929 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -25,7 +25,7 @@ steps: - script: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install . displayName: 'Install dependencies' - script: |