From 11ce30ede69484b09f3e2ea59c7e671528cf1579 Mon Sep 17 00:00:00 2001 From: mmorris-tech <890006278@ciat.edu> Date: Sat, 1 Nov 2025 23:29:30 -0500 Subject: [PATCH] Update Azure pipeline [skip ci] --- azure-pipelines.yml | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..59e0a54f2 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,46 @@ +trigger: + - main + +pool: + vmImage: ubuntu-latest + +strategy: + matrix: + Python310: + python.version: '3.10' + Python311: + python.version: '3.11' + Python312: + python.version: '3.12' + +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' + + - task: ArchiveFiles@2 + displayName: 'Archive files' + inputs: + rootFolderOrFile: '$(System.DefaultWorkingDirectory)' + includeRootFolder: false + archiveType: zip + archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId)-$(python.version).zip' + replaceExistingArchive: true + + - task: PublishBuildArtifacts@1 + displayName: 'Publish artifacts' + inputs: + PathtoPublish: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'drop' + publishLocation: 'Container' + + - script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'Run pytest' \ No newline at end of file