Skip to content

Commit

Permalink
Merge pull request #14 from gclendenning/main
Browse files Browse the repository at this point in the history
Add pre-release parameter in pipelines
  • Loading branch information
lmcinnes authored Jun 18, 2024
2 parents 246355d + 0d0360b commit c729eb1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')]

Expand Down Expand Up @@ -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 .
Expand Down

0 comments on commit c729eb1

Please sign in to comment.