Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit daa98a1

Browse files
authored
Merge pull request #27704 from QuLogic/no-azure-prerel
ci: Remove prerelease conditions from Azure Pipelines
2 parents ff0497c + 762a15a commit daa98a1

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,6 @@ stages:
7878
versionSpec: '$(python.version)'
7979
architecture: 'x64'
8080
displayName: 'Use Python $(python.version)'
81-
condition: and(succeeded(), ne(variables['python.version'], 'Pre'))
82-
83-
- task: stevedower.python.InstallPython.InstallPython@1
84-
displayName: 'Use prerelease Python'
85-
inputs:
86-
prerelease: true
87-
condition: and(succeeded(), eq(variables['python.version'], 'Pre'))
8881

8982
- bash: |
9083
set -e
@@ -136,8 +129,7 @@ stages:
136129
- bash: |
137130
python -m pip install --upgrade pip
138131
python -m pip install --upgrade meson-python pybind11
139-
python -m pip install -r requirements/testing/all.txt -r requirements/testing/extra.txt ||
140-
[[ "$PYTHON_VERSION" = 'Pre' ]]
132+
python -m pip install -r requirements/testing/all.txt -r requirements/testing/extra.txt
141133
displayName: 'Install dependencies with pip'
142134
143135
- bash: |
@@ -161,8 +153,7 @@ stages:
161153
162154
python -m pip install \
163155
--no-build-isolation $CONFIG \
164-
--verbose --editable .[dev] ||
165-
[[ "$PYTHON_VERSION" = 'Pre' ]]
156+
--verbose --editable .[dev]
166157
displayName: "Install self"
167158
168159
- script: env
@@ -227,8 +218,7 @@ stages:
227218
fi
228219
PYTHONFAULTHANDLER=1 pytest -raR -n 2 \
229220
--maxfail=50 --timeout=300 --durations=25 \
230-
--junitxml=junit/test-results.xml --cov-report=xml --cov=lib ||
231-
[[ "$PYTHON_VERSION" = 'Pre' ]]
221+
--junitxml=junit/test-results.xml --cov-report=xml --cov=lib
232222
if [[ -n $SESSION_ID ]]; then
233223
if [[ $VS_VER == 2022 ]]; then
234224
"$TOOL" shutdown $SESSION_ID
@@ -285,4 +275,4 @@ stages:
285275

286276
- publish: $(System.DefaultWorkingDirectory)/result_images
287277
artifact: $(Agent.JobName)-result_images
288-
condition: and(failed(), ne(variables['python.version'], 'Pre'))
278+
condition: failed()

0 commit comments

Comments
 (0)