diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 622db32..edf715c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,6 +19,12 @@ pr: - doc/* - README.rst +parameters: + - name: includeReleaseCandidates + displayName: "Allow pre-release dependencies" + type: boolean + default: false + variables: triggeredByPullRequest: $[eq(variables['Build.Reason'], 'PullRequest')] @@ -68,8 +74,17 @@ stages: - script: | python -m pip install --upgrade pip + displayName: 'Upgrade pip' + + - script: | pip install -r requirements.txt displayName: 'Install dependencies' + condition: ${{ eq(parameters.includeReleaseCandidates, false) }} + + - script: | + pip install --pre -r requirements.txt + displayName: 'Install dependencies (allow pre-releases)' + condition: ${{ eq(parameters.includeReleaseCandidates, true) }} - script: | pip install -e .