From b0f93c7130c1e5201a295ef9f97b9991923269e3 Mon Sep 17 00:00:00 2001 From: sareetb Date: Mon, 18 Mar 2024 11:30:20 +0200 Subject: [PATCH] Create azure-pipeline.yml --- azure-pipeline.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 azure-pipeline.yml diff --git a/azure-pipeline.yml b/azure-pipeline.yml new file mode 100644 index 000000000..3873c88ce --- /dev/null +++ b/azure-pipeline.yml @@ -0,0 +1,29 @@ +trigger: +- main + +pool: + vmImage: ubuntu-latest +strategy: + matrix: + Python38: + python.version: '3.8' + Python39: + python.version: '3.9' + Python310: + python.version: '3.10' + +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'