From 7fee8270fe42fc80d8b4480629d2d74df3419f67 Mon Sep 17 00:00:00 2001 From: Aaron Young Date: Sun, 11 Feb 2024 02:47:03 +0000 Subject: [PATCH 1/3] Just cloned in the tutorial for Pipelines on Azure From 623c218327d725c8a0a48d7894dcb3a1e74a0761 Mon Sep 17 00:00:00 2001 From: Aaron <140750736+AAYoung26@users.noreply.github.com> Date: Sun, 11 Feb 2024 03:00:43 +0000 Subject: [PATCH 2/3] 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..a6a949487 --- /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: +- main + +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 564f68c9c45d427665291be28564592b1629a5e7 Mon Sep 17 00:00:00 2001 From: Aaron <140750736+AAYoung26@users.noreply.github.com> Date: Sun, 11 Feb 2024 03:03:59 +0000 Subject: [PATCH 3/3] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..b6d9a4ea8 --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,29 @@ +# Docker +# Build a Docker image +# https://docs.microsoft.com/azure/devops/pipelines/languages/docker + +trigger: +- main + +resources: +- repo: self + +variables: + tag: '$(Build.BuildId)' + +stages: +- stage: Build + displayName: Build image + jobs: + - job: Build + displayName: Build + pool: + vmImage: ubuntu-latest + steps: + - task: Docker@2 + displayName: Build an image + inputs: + command: build + dockerfile: '$(Build.SourcesDirectory)/Dockerfile' + tags: | + $(tag)