diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 000000000..33cf7abc8 --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,73 @@ +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +# Python 2.7 +- task: UsePythonVersion@0 + inputs: + versionSpec: '2.7' + displayName: 'Use Python 2.7' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies (Python 2.7)' + +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'Run tests (Python 2.7)' + + +# Python 3.5 +- task: UsePythonVersion@0 + inputs: + versionSpec: '3.5' + displayName: 'Use Python 3.5' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies (Python 3.5)' + +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'Run tests (Python 3.5)' + + +# Python 3.6 +- task: UsePythonVersion@0 + inputs: + versionSpec: '3.6' + displayName: 'Use Python 3.6' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies (Python 3.6)' + +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'Run tests (Python 3.6)' + + +# Python 3.7 +- task: UsePythonVersion@0 + inputs: + versionSpec: '3.7' + displayName: 'Use Python 3.7' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies (Python 3.7)' + +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'Run tests (Python 3.7)' \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..b297e494a --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,25 @@ +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +stages: +- stage: Test + jobs: + - job: PythonTests # Renamed for clarity + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '3.11' # <-- UPDATED VERSION + displayName: 'Use Python 3.11' + + - script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies' + + - script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'Run tests' \ No newline at end of file