From 72bca0c5a91a1ee8b222051aa446db0174da3ea2 Mon Sep 17 00:00:00 2001 From: loga rakshika <51663473+rakshika-28@users.noreply.github.com> Date: Tue, 30 Aug 2022 14:51:35 +0530 Subject: [PATCH 1/2] 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..6f401c616 --- /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 1dc88c2cbb746c5f0ca2c3e00866a3b763b2e1d6 Mon Sep 17 00:00:00 2001 From: loga rakshika <51663473+rakshika-28@users.noreply.github.com> Date: Tue, 30 Aug 2022 10:17:29 +0000 Subject: [PATCH 2/2] Update __init__.py --- hello_app/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hello_app/__init__.py b/hello_app/__init__.py index eb82cbf69..4e7ca6d56 100644 --- a/hello_app/__init__.py +++ b/hello_app/__init__.py @@ -1,2 +1,3 @@ from flask import Flask # Import the Flask class app = Flask(__name__) # Create an instance of the class for our use +//ashut