From d108baf0e0bc1ade78088acf94443584cabef63d Mon Sep 17 00:00:00 2001 From: Issiaka CISSE Date: Thu, 27 Jan 2022 11:09:06 +0100 Subject: [PATCH 1/6] 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 b40dabc3dc079be2a7e992047dfc2032f8090fec Mon Sep 17 00:00:00 2001 From: "issiaka.cisse" Date: Thu, 27 Jan 2022 11:51:43 +0100 Subject: [PATCH 2/6] modifi --- azure-pipelines.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6f401c616..f1848e9fe 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,12 +10,6 @@ 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' From 06ab2b6afce64c59dafa2c39a91a53425c62858d Mon Sep 17 00:00:00 2001 From: "issiaka.cisse" Date: Thu, 27 Jan 2022 11:54:20 +0100 Subject: [PATCH 3/6] modif --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f1848e9fe..a2a0ca9f3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,3 +28,5 @@ steps: pip install pytest pytest-azurepipelines pytest displayName: 'pytest' + +- script: python src/example.py From fde89c074aae1d96e6850034d682494d318b5405 Mon Sep 17 00:00:00 2001 From: "issiaka.cisse" Date: Thu, 27 Jan 2022 11:56:51 +0100 Subject: [PATCH 4/6] modif --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a2a0ca9f3..29070f285 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,4 +29,4 @@ steps: pytest displayName: 'pytest' -- script: python src/example.py +- script: python src/test_test1.py From e75cd038ec2c2143df9d1a21db430e4dd5aa2fb9 Mon Sep 17 00:00:00 2001 From: "issiaka.cisse" Date: Thu, 27 Jan 2022 12:03:31 +0100 Subject: [PATCH 5/6] modif --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 29070f285..29f2ad8df 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,4 +29,4 @@ steps: pytest displayName: 'pytest' -- script: python src/test_test1.py +- script: python startup.py From 1d8bf3c09ff0b87b22543685ed6aae6b3aa9b927 Mon Sep 17 00:00:00 2001 From: "issiaka.cisse" Date: Thu, 27 Jan 2022 12:06:15 +0100 Subject: [PATCH 6/6] modif --- azure-pipelines.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 29f2ad8df..159b66b74 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,3 +30,10 @@ steps: displayName: 'pytest' - script: python startup.py + +- task: PythonScript@0 + inputs: + scriptSource: 'inline' + script: | + print('Hello world 1') + print('Hello world 2')